mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-20 15:06:36 +00:00
Merge tag 'v0.1.98' into release/custom-0.1.97
修复 Codex/Responses 原生 input id 被误改写的问题,修复 OpenAI 模型映射和 chat-completions 兼容层多项问题。 - 修复 Codex/Responses 原生 input id 被误改写成 fc_* 前缀的问题 - 修复 OpenAI OAuth 账号的模型映射未在管理员可用模型列表中生效的问题 - 修复账号级模型映射未优先于分组回退的问题 - 修复账号更新时调度器快照未同步的问题 - 修复 chat-completions 兼容层中 reasoning_content 输出丢失的问题 - 修复 chat-completions 兼容层中 function_call id 无效的问题 - 修复 chat-completions 兼容层中默认映射模型在非调度回退场景下被错误应用的问题 - 修复 assistant 消息解析中 strings.Builder 写入错误未处理的问题 - 清理未使用的通配符映射辅助函数
This commit is contained in:
commit
22e9fa72af
20 files changed
+556
-75
No files matched your search
@@ -1866,13 +1866,12 @@ func (h *AccountHandler) GetAvailableModels(c *gin.Context) {
|
||||
|
||||
// Handle OpenAI accounts
|
||||
if account.IsOpenAI() {
|
||||
// For OAuth accounts: return default OpenAI models
|
||||
if account.IsOAuth() {
|
||||
// OpenAI 自动透传会绕过常规模型改写,测试/模型列表也应回落到默认模型集。
|
||||
if account.IsOpenAIPassthroughEnabled() {
|
||||
response.Success(c, openai.DefaultModels)
|
||||
return
|
||||
}
|
||||
|
||||
// For API Key accounts: check model_mapping
|
||||
mapping := account.GetModelMapping()
|
||||
if len(mapping) == 0 {
|
||||
response.Success(c, openai.DefaultModels)
|
||||
|
||||
Reference in new issue
Block a user