Open holymode opened 7 months ago
Based on this document, it appears gemini function calling requires the function definitions to be made using the classes/types defined within the google-generativeai
package, which is internally different from the format OpenAI's requires for function calling (a JSON encoded dictionary).
https://json-schema.org/understanding-json-schema
I'd have to either create a completely separate schema generation system just for Gemini (which is out of the question as it will make custom converters harder to implement), or create a bulky translator module that turns the JSON Schema compatible Dictionary OpenAI package uses into something that the google-generativeai
package can give to Gemini.
Invoking the functions would require it's own set of changes.
What are your thoughts about adding support for gemini function calling? https://ai.google.dev/docs/function_calling
Shouldnt be too complicated.