mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-08 02:17:46 +08:00
Add Gemini CLI v1internal quota support
This commit is contained in:
@@ -23,6 +23,11 @@ export function getDefaultEndpointPath(params: {
|
||||
}): string {
|
||||
const providerType = (params.providerType || '').toLowerCase()
|
||||
const normalizedApiFormat = normalizeEndpointApiFormat(params.apiFormat)
|
||||
if (providerType === 'gemini_cli') {
|
||||
if (normalizedApiFormat === 'gemini:generate_content') {
|
||||
return '/v1internal:{action}'
|
||||
}
|
||||
}
|
||||
if (providerType === 'vertex_ai') {
|
||||
if (normalizedApiFormat === 'gemini:generate_content') {
|
||||
return '/v1/projects/{project_id}/locations/{region}/publishers/google/models/{model}:{action}'
|
||||
|
||||
Reference in New Issue
Block a user