Quellcode durchsuchen

fix bug about field misspell (#243)

### What problem does this PR solve?

_Briefly describe what this PR aims to solve. Include background context
that will help reviewers understand the purpose of the PR._

Issue link:#[[Link the issue
here](https://github.com/infiniflow/ragflow/issues/242)]

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.1.0
KevinHuSh vor 1 Jahr
Ursprung
Commit
591202721d
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      api/db/init_data.py

+ 1
- 1
api/db/init_data.py Datei anzeigen

for llm in LLMService.query(fid=LLM_FACTORY): for llm in LLMService.query(fid=LLM_FACTORY):
tenant_llm.append( tenant_llm.append(
{"tenant_id": user_info["id"], "llm_factory": LLM_FACTORY, "llm_name": llm.llm_name, "model_type": llm.model_type, {"tenant_id": user_info["id"], "llm_factory": LLM_FACTORY, "llm_name": llm.llm_name, "model_type": llm.model_type,
"api_key": API_KEY, "base_url": LLM_BASE_URL})
"api_key": API_KEY, "api_base": LLM_BASE_URL})
if not UserService.save(**user_info): if not UserService.save(**user_info):
print("\033[93m【ERROR】\033[0mcan't init admin.") print("\033[93m【ERROR】\033[0mcan't init admin.")

Laden…
Abbrechen
Speichern