Skip to content

Commit 3683f22

Browse files
2228293026HitMargin
andauthored
补全status界面里的信息 (#189)
* docs: update contributors * docs: update contributors * docs: update contributors * docs: update contributors * 添加status命令里更多模型api介绍 --------- Co-authored-by: HitMargin <hitmargin@qq.com>
1 parent 4e4111b commit 3683f22

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

src/utils/status.tsx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,9 @@ export function buildAPIProviderProperties(): Property[] {
339339
bedrock: 'AWS Bedrock',
340340
vertex: 'Google Vertex AI',
341341
foundry: 'Microsoft Foundry',
342-
gemini: 'Gemini API'
342+
gemini: 'Gemini API',
343+
grok: 'Grok API',
344+
openai: 'OpenAI API',
343345
}[apiProvider]
344346
properties.push({
345347
label: 'API provider',
@@ -430,6 +432,18 @@ export function buildAPIProviderProperties(): Property[] {
430432
label: 'Gemini base URL',
431433
value: geminiBaseUrl,
432434
})
435+
} else if (apiProvider === 'grok') {
436+
const grokBaseUrl = process.env.GROK_BASE_URL
437+
properties.push({
438+
label: 'Grok base URL',
439+
value: grokBaseUrl,
440+
})
441+
} else if (apiProvider === 'openai') {
442+
const openaiBaseUrl = process.env.OPENAI_BASE_URL
443+
properties.push({
444+
label: 'OpenAI base URL',
445+
value: openaiBaseUrl,
446+
})
433447
}
434448

435449
const proxyUrl = getProxyUrl()

0 commit comments

Comments
 (0)