refac
This commit is contained in:
@@ -188,6 +188,8 @@ type OpenAIConfigForm = {
|
||||
url: string;
|
||||
};
|
||||
|
||||
type OllamaConfigForm = OpenAIConfigForm;
|
||||
|
||||
type AzureOpenAIConfigForm = {
|
||||
key: string;
|
||||
url: string;
|
||||
@@ -196,10 +198,13 @@ type AzureOpenAIConfigForm = {
|
||||
|
||||
type EmbeddingModelUpdateForm = {
|
||||
openai_config?: OpenAIConfigForm;
|
||||
ollama_config?: OllamaConfigForm;
|
||||
azure_openai_config?: AzureOpenAIConfigForm;
|
||||
embedding_engine: string;
|
||||
embedding_model: string;
|
||||
embedding_batch_size?: number;
|
||||
RAG_EMBEDDING_ENGINE: string;
|
||||
RAG_EMBEDDING_MODEL: string;
|
||||
RAG_EMBEDDING_BATCH_SIZE?: number;
|
||||
ENABLE_ASYNC_EMBEDDING?: boolean;
|
||||
RAG_EMBEDDING_CONCURRENT_REQUESTS?: number;
|
||||
};
|
||||
|
||||
export const updateEmbeddingConfig = async (token: string, payload: EmbeddingModelUpdateForm) => {
|
||||
|
||||
Reference in New Issue
Block a user