Skip to content

Commit ad1d031

Browse files
authored
feat(providers): 添加Xinference提供商并更新OpenAI图标 (#70)
- 新增Xinference提供商配置,支持多种功能 - 将OpenAI的图标从'ikun-chatgpt'更新为'ikun-chatgpt-copy'
1 parent cddec53 commit ad1d031

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

ui/ModelModal/src/assets/fonts/iconfont.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/ModelModal/src/constants/providers.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const DEFAULT_MODEL_PROVIDERS: ModelProviderMap = {
9595
OpenAI: {
9696
label: 'OpenAI',
9797
cn: 'OpenAI',
98-
icon: 'ikun-chatgpt',
98+
icon: 'ikun-chatgpt-copy',
9999
urlWrite: false,
100100
secretRequired: true,
101101
customHeader: false,
@@ -237,6 +237,21 @@ export const DEFAULT_MODEL_PROVIDERS: ModelProviderMap = {
237237
// modelDocumentUrl: 'https://github.com/settings/tokens',
238238
// defaultBaseUrl: 'https://models.github.ai/catalog',
239239
// },
240+
Xinference: {
241+
label: 'Xinference',
242+
cn: 'Xinference',
243+
icon: 'ikun-Xinference',
244+
urlWrite: true,
245+
secretRequired: false,
246+
customHeader: false,
247+
chat: true,
248+
code: true,
249+
embedding: true,
250+
rerank:true,
251+
analysis: true,
252+
modelDocumentUrl: 'https://inference.readthedocs.io/zh-cn/v1.2.0/getting_started/installation.html#installation',
253+
defaultBaseUrl: 'http://172.17.0.1:9997',
254+
},
240255
Yi: {
241256
label: 'Yi',
242257
cn: '零一万物',
@@ -312,7 +327,7 @@ export const DEFAULT_MODEL_PROVIDERS: ModelProviderMap = {
312327
// modelDocumentUrl: '',
313328
// defaultBaseUrl: 'https://api.jina.ai/v1',
314329
// },
315-
330+
316331
CTYun: {
317332
label: 'CTYun',
318333
cn: '天翼云息壤',

0 commit comments

Comments
 (0)