Compare commits

...

3 Commits

Author SHA1 Message Date
Robin Newhouse b8ebeecde0 fix: add supportsReasoning to LiteLLM proto serialization
The model ID key fix alone wasn't sufficient - supportsReasoning was
being lost during the proto serialization cycle when saving/loading
model info. This adds the field to all relevant conversion functions.
2026-01-29 15:49:19 -08:00
ClineXDiego 1c8ea74276 Merge branch 'main' into fix/8342-litellm-thinking-focused 2026-01-19 16:13:33 -03:00
Yurii Chukhlib 07c305eb78 Fix: LiteLLM thinking configuration not showing for models (#8342) 2026-01-17 09:57:37 +01:00
5 changed files with 13 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"claude-dev": patch
---
Fix LiteLLM thinking configuration not showing for models (#8342)
+1
View File
@@ -484,6 +484,7 @@ message LiteLLMModelInfo {
repeated ModelTier tiers = 12;
optional double temperature = 13;
optional ApiFormat api_format = 14;
optional bool supports_reasoning = 15;
}
// Main ApiConfiguration message
@@ -52,7 +52,10 @@ export async function refreshLiteLlmModels(): Promise<Record<string, ModelInfo>>
description: undefined,
}
models[rawModel.model_name] = modelInfo
// Use litellm_params.model as the key since that's the actual model ID users select
// model_name may not include the region prefix (e.g., "us." for Bedrock models)
const modelId = rawModel.litellm_params?.model || rawModel.model_name
models[modelId] = modelInfo
}
}
} catch (error) {
@@ -160,6 +160,7 @@ function convertLiteLLMModelInfoToProto(info: AppLiteLLMModelInfo | undefined):
description: info.description,
tiers: info.tiers || [],
temperature: info.temperature,
supportsReasoning: info.supportsReasoning,
}
}
@@ -183,6 +184,7 @@ function convertProtoToLiteLLMModelInfo(info: LiteLLMModelInfo | undefined): App
description: info.description,
tiers: info.tiers.length > 0 ? info.tiers : undefined,
temperature: info.temperature,
supportsReasoning: info.supportsReasoning,
}
}
@@ -112,6 +112,7 @@ export function fromProtobufLiteLLMModelInfo(protoInfo: ProtoLiteLLMModelInfo):
contextWindow: protoInfo.contextWindow,
supportsImages: protoInfo.supportsImages,
supportsPromptCache: protoInfo.supportsPromptCache,
supportsReasoning: protoInfo.supportsReasoning,
inputPrice: protoInfo.inputPrice,
outputPrice: protoInfo.outputPrice,
cacheWritesPrice: protoInfo.cacheWritesPrice,