|
|
|
@@ -132,7 +132,7 @@ def init_llm_factory(): |
|
|
|
TenantService.filter_update([1 == 1], { |
|
|
|
"parser_ids": "naive:General,qa:Q&A,resume:Resume,manual:Manual,table:Table,paper:Paper,book:Book,laws:Laws,presentation:Presentation,picture:Picture,one:One,audio:Audio,knowledge_graph:Knowledge Graph,email:Email"}) |
|
|
|
## insert openai two embedding models to the current openai user. |
|
|
|
print("Start to insert 2 OpenAI embedding models...") |
|
|
|
# print("Start to insert 2 OpenAI embedding models...") |
|
|
|
tenant_ids = set([row["tenant_id"] for row in TenantLLMService.get_openai_models()]) |
|
|
|
for tid in tenant_ids: |
|
|
|
for row in TenantLLMService.query(llm_factory="OpenAI", tenant_id=tid): |