Add reasoning flag for azure models with "default" fallback (#3128)

This commit is contained in:
Timothy Carambat
2025-02-05 15:22:45 -08:00
committed by GitHub
parent 805b4f79d8
commit e76baacec4
4 changed files with 35 additions and 12 deletions

View File

@@ -35,6 +35,15 @@ const KEY_MAPPING = {
envKey: "EMBEDDING_MODEL_PREF",
checks: [isNotEmpty],
},
AzureOpenAiModelType: {
envKey: "AZURE_OPENAI_MODEL_TYPE",
checks: [
(input) =>
["default", "reasoning"].includes(input)
? null
: "Invalid model type. Must be one of: default, reasoning.",
],
},
// Anthropic Settings
AnthropicApiKey: {