fix(github models): get id instead of name (#9008)

* fix(openai): 修正模型ID字段从name改为id

* fix(providers): 更新github api的url路径
This commit is contained in:
Phantom 2025-08-09 14:28:16 +08:00 committed by GitHub
parent 8823dc6a52
commit 67b560da08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ export abstract class OpenAIBaseClient<
// @ts-ignore key is not typed
return response?.body
.map((model) => ({
id: model.name,
id: model.id,
description: model.summary,
object: 'model',
owned_by: model.publisher

View File

@ -812,7 +812,7 @@ export const PROVIDER_URLS: Record<SystemProviderId, ProviderUrls> = {
},
github: {
api: {
url: 'https://models.github.ai/'
url: 'https://models.github.ai/inference/'
},
websites: {
official: 'https://github.com/marketplace/models',