Skip to content

Commit

Permalink
Merge pull request #443 from Portkey-AI/fix/vertex-google-stream-endp…
Browse files Browse the repository at this point in the history
…oint

fix: vertex google model stream endpoint
  • Loading branch information
VisargD authored Jul 9, 2024
2 parents 3e29959 + 6e98cdd commit 6024e79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/google-vertex-ai/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const GoogleApiConfig: ProviderAPIConfig = {
if (mappedFn === 'chatComplete') {
return `/publishers/${provider}/models/${model}:generateContent`;
} else if (mappedFn === 'stream-chatComplete') {
return `/publishers/${provider}/models/${model}/streamGenerateContent?alt=sse`;
return `/publishers/${provider}/models/${model}:streamGenerateContent?alt=sse`;
}
}

Expand Down

0 comments on commit 6024e79

Please sign in to comment.