zhu327 / gemini-openai-proxy

A proxy for converting the OpenAI API protocol to the Google Gemini Pro protocol.
MIT License
504 stars 92 forks source link

希望能兼容 function calling #16

Closed fatwang2 closed 3 months ago

fatwang2 commented 5 months ago

Gemini 也支持 function calling,格式跟 OpenAI 类似,希望能做个兼容

zhu327 commented 5 months ago

https://github.com/google/generative-ai-go/issues/32

Not available yet, SDK does not support

fatwang2 commented 5 months ago

我看Gemini的官方文档,现在已经有测试版的function calling功能了,已经有明确的接口文档了,我理解请求的时候请求beta的model就可以

On Tue, Jan 9, 2024 at 10:01 AM Timmy @.***> wrote:

google/generative-ai-go#32 https://github.com/google/generative-ai-go/issues/32

Not available yet, SDK does not support

— Reply to this email directly, view it on GitHub https://github.com/zhu327/gemini-openai-proxy/issues/16#issuecomment-1882166896, or unsubscribe https://github.com/notifications/unsubscribe-auth/A77NZSWYLJSH2JTFGKDSA2LYNSQHFAVCNFSM6AAAAABBSK4AQOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBSGE3DMOBZGY . You are receiving this because you authored the thread.Message ID: @.***>

zhu327 commented 5 months ago

The gemini openai proxy uses the official GoLang SDK. Currently the SDK has not encapsulated the function call related functions yet. You can refer to the link in the previous reply

zhu327 commented 3 months ago

The SDK now supports function calls, but it requires developers with specific needs to contribute pull requests.