fix: Fix Openrouter test errors and optimize error messages (#2433)

* fix: Refine openrouter error

* fix: Refine openrouter error

* fix: openrouter test max_output_token

* fix: optimize messages

* fix: maxToken unified to 16

* fix: codex系列模型使用 responses接口

* fix: codex系列模型使用 responses接口

* fix: 状态码非200打印错误信息

* fix: 日志里没有报错的响应体
This commit is contained in:
Seefs authored and GitHub committed 2025-12-26 13:58:44 +08:00
1 parent 15b38adf98
commit 2570788b46
5 files changed
+57 -10

No files matched your search

+1
View File
@@ -26,6 +26,7 @@ type GeneralErrorResponse struct {
Msg string `json:"msg"`
Err string `json:"err"`
ErrorMsg string `json:"error_msg"`
Metadata json.RawMessage `json:"metadata,omitempty"`
Header struct {
Message string `json:"message"`
} `json:"header"`