instead of having an openai => google translation layer, just add sister functions to the types that construct the google request just like openai's

This commit is contained in:
2025-04-07 01:57:02 -04:00
parent 58552ee226
commit 5ba0d5df7e
11 changed files with 175 additions and 232 deletions

View File

@@ -39,7 +39,7 @@ func (o openaiImpl) newRequestToOpenAIRequest(request Request) openai.ChatComple
Name: tool.Name,
Description: openai.String(tool.Description),
Strict: openai.Bool(tool.Strict),
Parameters: tool.Parameters.FunctionParameters(),
Parameters: tool.Parameters.OpenAIParameters(),
},
})
}