fix: 优化对话异常提示信息
将抛出异常的消息从 "OpenAI对话异常{StatusCode}" 修改为更详细的中文提示,包含 StatusCode 与 Response 内容,便于排查。未改变逻辑,仅调整异常文本。
This commit is contained in:
@@ -80,7 +80,7 @@ public class AnthropicChatCompletionsService(
|
|||||||
options.Endpoint,
|
options.Endpoint,
|
||||||
response.StatusCode, error);
|
response.StatusCode, error);
|
||||||
|
|
||||||
throw new Exception("OpenAI对话异常" + response.StatusCode.ToString());
|
throw new Exception( $"恭喜你运气爆棚遇到了错误,尊享包对话异常:StatusCode【{response.StatusCode}】,Response【{error}】");
|
||||||
}
|
}
|
||||||
|
|
||||||
var value =
|
var value =
|
||||||
|
|||||||
Reference in New Issue
Block a user