mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 17:30:23 +08:00
fix: 修复模型测试使用记录中 API 格式显示错误
将 check_endpoint 方法中的 api_format 参数从 cls.name 改为 cls.FORMAT_ID, 确保使用记录存储标准枚举值(如 GEMINI)而非内部名称(如 gemini.chat)
This commit is contained in:
@@ -599,7 +599,7 @@ class CliAdapterBase(ApiAdapter):
|
||||
url=url,
|
||||
headers=headers,
|
||||
json_body=body,
|
||||
api_format=cls.name,
|
||||
api_format=cls.FORMAT_ID,
|
||||
# 用量计算参数(现在强制记录)
|
||||
db=db,
|
||||
user=user,
|
||||
|
||||
@@ -279,7 +279,7 @@ class GeminiChatAdapter(ChatAdapterBase):
|
||||
url=url,
|
||||
headers=headers,
|
||||
json_body=body,
|
||||
api_format=cls.name,
|
||||
api_format=cls.FORMAT_ID,
|
||||
# 用量计算参数(现在强制记录)
|
||||
db=db,
|
||||
user=user,
|
||||
|
||||
Reference in New Issue
Block a user