feat(core): enable overriding CODE_ASSIST_API_VERSION with env var (#17942)

Co-authored-by: Charlotte Lin <charlotteclin@google.com>
This commit is contained in:
lottielin
2026-01-30 11:12:04 -08:00
committed by GitHub
parent 62346875e4
commit d1cd69a20d
2 changed files with 19 additions and 1 deletions
+3 -1
View File
@@ -374,7 +374,9 @@ export class CodeAssistServer implements ContentGenerator {
private getBaseUrl(): string {
const endpoint =
process.env['CODE_ASSIST_ENDPOINT'] ?? CODE_ASSIST_ENDPOINT;
return `${endpoint}/${CODE_ASSIST_API_VERSION}`;
const version =
process.env['CODE_ASSIST_API_VERSION'] || CODE_ASSIST_API_VERSION;
return `${endpoint}/${version}`;
}
getMethodUrl(method: string): string {