mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-03 02:59:07 +08:00
fix(github models): get id instead of name (#9008)
* fix(openai): 修正模型ID字段从name改为id * fix(providers): 更新github api的url路径
This commit is contained in:
parent
8823dc6a52
commit
67b560da08
@ -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
|
||||
|
||||
@ -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',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user