-
Notifications
You must be signed in to change notification settings - Fork 409
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
Update ai ext #7963
Update ai ext #7963
Conversation
b71927d
to
149f8b0
Compare
edb/server/protocol/ai_ext.py
Outdated
"objects" | ||
"prompt.custom must be a list, where each element is \ | ||
one of the following types: \ | ||
- EdgeDBSystemMessage: { role, content } \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where does EdgeDBSystemMessage
and others come from? Seems a bit confusing since those aren't actual keys in input?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the type EdgeDBSystemMessage
etc are defined in the js vercel provider and js ai binding,
they represent the messages user provides, like the chat history
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, but this is server-side. If one interacts with the API via another SDK the errors would not make sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get it, I believe the error is better now. It should be understandable enough for everyone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I've mostly commented on some style things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments all resolved, looks good!
Add up to date models to the
ai.edgeql
.Update ai ext:
Tested basic rag queries and queries that involve function calling with OpenAI, Mistral and Anthropic.
Questions about the country are using function calling.
https://github.com/user-attachments/assets/68d89295-1082-4573-a194-f218e709a154