Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Function Calling Example #9

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

h0rv
Copy link

@h0rv h0rv commented Jun 25, 2024

No description provided.

@h0rv
Copy link
Author

h0rv commented Jun 25, 2024

When running this example, I am seeing the following error:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: APIError { message: "400: {\n  \"error\": {\n    \"message\": \"Invalid schema for function 'Searches': None is not valid under any of the given schemas.\",\n    \"type\": \"invalid_request_error\",\n    \"param\": \"tools[0].function.parameters\",\n    \"code\": \"invalid_function_parameters\"\n  }\n}" }', /home/horv/.cargo/registry/src/github.com-1ecc6299db9ec823/instructor-ai-0.1.0/src/lib.rs:117:55
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

@h0rv
Copy link
Author

h0rv commented Jun 26, 2024

Enums are not yet supported - will work on getting them working before merging

@jxnl
Copy link
Contributor

jxnl commented Jul 6, 2024

@ivanleomk got some ideas on enums

@h0rv h0rv marked this pull request as ready for review July 15, 2024 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants