Merge pull request #5045 from ConnectAI-E/fix/google

refactor: google
This commit is contained in:
Dogtiti
2024-07-19 10:19:04 +08:00
committed by GitHub
3 changed files with 101 additions and 87 deletions

View File

@@ -118,7 +118,8 @@ export const Azure = {
export const Google = {
ExampleEndpoint: "https://generativelanguage.googleapis.com/",
ChatPath: (modelName: string) => `v1beta/models/${modelName}:generateContent`,
ChatPath: (modelName: string) =>
`v1beta/models/${modelName}:streamGenerateContent`,
};
export const Baidu = {