forked from open-webui/open-webui
feat: openai embeddings integration
This commit is contained in:
parent
b48e73fa43
commit
b1b72441bb
6 changed files with 155 additions and 46 deletions
|
@ -373,7 +373,13 @@ export const getEmbeddingConfig = async (token: string) => {
|
|||
return res;
|
||||
};
|
||||
|
||||
type OpenAIConfigForm = {
|
||||
key: string;
|
||||
url: string;
|
||||
};
|
||||
|
||||
type EmbeddingModelUpdateForm = {
|
||||
openai_config?: OpenAIConfigForm;
|
||||
embedding_engine: string;
|
||||
embedding_model: string;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue