fix: Resolve streaming output for Vertex AI Express Mode (#4474) * fix(api): Resolve streaming output for Vertex AI Express Mode * chore: Remove unused 'util' variable * chore: Restore original debug log * Even cleaner diff --------- Co-authored-by: AliceRabbit <b290627396@gmail.com> Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>

fe8ebedeb2c206caf5a59710b8e6e68b3d265d76

Compass <32301767+AliceRabbit@users.noreply.github.com>

Signed
1 files changed, +2 -2Ignore whitespace
src/endpoints/backends/chat-completions.js+2 -2
@@ -498,8 +498,8 @@ async function sendMakerSuiteRequest(request, response) {
498 ? 'https://aiplatform.googleapis.com'498 ? 'https://aiplatform.googleapis.com'
499 : `https://${region}-aiplatform.googleapis.com`;499 : `https://${region}-aiplatform.googleapis.com`;
500 url = projectId500 url = projectId
501 ? `https://aiplatform.googleapis.com/v1/projects/${projectId}/locations/${region}/publishers/google/models/${model}:generateContent?key=${keyParam}${stream ? '&alt=sse' : ''}`501 ? `https://aiplatform.googleapis.com/v1/projects/${projectId}/locations/${region}/publishers/google/models/${model}:${responseType}?key=${keyParam}${stream ? '&alt=sse' : ''}`
502 : `${baseUrl}/v1/publishers/google/models/${model}:generateContent?key=${keyParam}${stream ? '&alt=sse' : ''}`;502 : `${baseUrl}/v1/publishers/google/models/${model}:${responseType}?key=${keyParam}${stream ? '&alt=sse' : ''}`;
503 } else if (authType === 'full') {503 } else if (authType === 'full') {
504 // For Full mode (service account authentication), use project-specific URL504 // For Full mode (service account authentication), use project-specific URL
505 // Get project ID from Service Account JSON505 // Get project ID from Service Account JSON