fix: 优化对话异常提示信息

将抛出异常的消息从 "OpenAI对话异常{StatusCode}" 修改为更详细的中文提示,包含 StatusCode 与 Response 内容,便于排查。未改变逻辑,仅调整异常文本。
This commit is contained in:
chenchun
2025-10-28 16:02:01 +08:00
parent acb359ec33
commit c6425ca206

View File

@@ -80,7 +80,7 @@ public class AnthropicChatCompletionsService(
options.Endpoint,
response.StatusCode, error);
throw new Exception("OpenAI对话异常" + response.StatusCode.ToString());
throw new Exception( $"恭喜你运气爆棚遇到了错误尊享包对话异常StatusCode【{response.StatusCode}】Response【{error}】");
}
var value =