feat: support gemini tool calling (close #368)

This commit is contained in:
CalciumIon
2024-07-18 20:28:47 +08:00
parent 14bf865034
commit f96291a25a
4 changed files with 105 additions and 95 deletions

View File

@@ -47,7 +47,7 @@ func (a *Adaptor) GetRequestURL(info *relaycommon.RelayInfo) (string, error) {
action := "generateContent"
if info.IsStream {
action = "streamGenerateContent"
action = "streamGenerateContent?alt=sse"
}
return fmt.Sprintf("%s/%s/models/%s:%s", info.BaseUrl, version, info.UpstreamModelName, action), nil
}