ITADN

Azure OpenAI - `_is_reasoning()` logic is fragile

#242Openshea-parkes 创建于 2025-12-15
S
shea-parkescommented
`OpenAIAzureProvider` inherits from `OpenAIProvider`. But it sets `model=deployment_id`. Then it just uses the inherited `is_reasoning()`: ```python @staticmethod def _is_reasoning(model: str) -> bool: # https://platform.openai.com/docs/models/compare return model.startswith("o") or model.startswith("gpt-5") ``` So I have to adjust my deployment names to get the model to be correctly identified as reasoning.
2 条评论