Feat/add xinference openllm provider (#958)

This commit is contained in:
zxhlyh
2023-08-22 18:19:10 +08:00
committed by GitHub
parent 5cba2e7087
commit 215a27fd95
21 changed files with 1119 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ import { ValidatedStatus } from '../key-validator/declarations'
import { ProviderEnum } from './declarations'
import { validateModelProvider } from '@/service/common'
export const ConfigurableProviders = [ProviderEnum.azure_openai, ProviderEnum.replicate, ProviderEnum.huggingface_hub]
export const ConfigurableProviders = [ProviderEnum.azure_openai, ProviderEnum.replicate, ProviderEnum.huggingface_hub, ProviderEnum.xinference, ProviderEnum.openllm]
export const validateModelProviderFn = async (providerName: ProviderEnum, v: any) => {
let body, url