From a829215605fa7c2a83ccc5a7ee855a5960b57494 Mon Sep 17 00:00:00 2001 From: cte Date: Mon, 24 Mar 2025 21:05:56 -0700 Subject: [PATCH] Add comments to ApiHandlerOptions --- src/shared/api.ts | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/src/shared/api.ts b/src/shared/api.ts index a4eb382ef7..8586dfc027 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -21,17 +21,20 @@ export type ApiProvider = export interface ApiHandlerOptions { apiModelId?: string - apiKey?: string // anthropic + // Anthropic + apiKey?: string anthropicBaseUrl?: string - vsCodeLmModelSelector?: vscode.LanguageModelChatSelector + // Glama glamaModelId?: string glamaModelInfo?: ModelInfo glamaApiKey?: string + // OpenRouter openRouterApiKey?: string openRouterModelId?: string openRouterModelInfo?: ModelInfo openRouterBaseUrl?: string openRouterSpecificProvider?: string + // AWS Bedrok awsAccessKey?: string awsSecretKey?: string awsSessionToken?: string @@ -42,42 +45,58 @@ export interface ApiHandlerOptions { awsProfile?: string awsUseProfile?: boolean awsCustomArn?: string + // Google Vertex vertexKeyFile?: string vertexJsonCredentials?: string vertexProjectId?: string vertexRegion?: string + // OpenAI openAiBaseUrl?: string openAiApiKey?: string openAiR1FormatEnabled?: boolean openAiModelId?: string openAiCustomModelInfo?: ModelInfo openAiUseAzure?: boolean + // Ollama ollamaModelId?: string ollamaBaseUrl?: string + // VS Code LM + vsCodeLmModelSelector?: vscode.LanguageModelChatSelector + // LM Studio lmStudioModelId?: string lmStudioBaseUrl?: string lmStudioDraftModelId?: string lmStudioSpeculativeDecodingEnabled?: boolean + // Gemini geminiApiKey?: string googleGeminiBaseUrl?: string + // OpenAI Native openAiNativeApiKey?: string + // Mistral mistralApiKey?: string mistralCodestralUrl?: string // New option for Codestral URL + // Azure azureApiVersion?: string + // OpenRouter openRouterUseMiddleOutTransform?: boolean openAiStreamingEnabled?: boolean + // DeepSeek deepSeekBaseUrl?: string deepSeekApiKey?: string includeMaxTokens?: boolean + // Unbound unboundApiKey?: string unboundModelId?: string unboundModelInfo?: ModelInfo + // Requesty requestyApiKey?: string requestyModelId?: string requestyModelInfo?: ModelInfo + // Claude 3.7 Sonnet Thinking modelTemperature?: number | null modelMaxTokens?: number modelMaxThinkingTokens?: number + // Fake AI fakeAi?: unknown }