mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-23 19:44:30 -07:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user