feat: openai embeddings integration
This commit is contained in:
1 parent
b48e73fa43
commit
b1b72441bb
6 files changed
+155
-46
No files matched your search
@@ -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;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user