KevinHuSh commited on
Commit
25b212e
·
1 Parent(s): 1cc01e0

fix bug about field misspell (#243)

Browse files

### 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)

Files changed (1) hide show
  1. api/db/init_data.py +1 -1
api/db/init_data.py CHANGED
@@ -54,7 +54,7 @@ def init_superuser():
54
  for llm in LLMService.query(fid=LLM_FACTORY):
55
  tenant_llm.append(
56
  {"tenant_id": user_info["id"], "llm_factory": LLM_FACTORY, "llm_name": llm.llm_name, "model_type": llm.model_type,
57
- "api_key": API_KEY, "base_url": LLM_BASE_URL})
58
 
59
  if not UserService.save(**user_info):
60
  print("\033[93m【ERROR】\033[0mcan't init admin.")
 
54
  for llm in LLMService.query(fid=LLM_FACTORY):
55
  tenant_llm.append(
56
  {"tenant_id": user_info["id"], "llm_factory": LLM_FACTORY, "llm_name": llm.llm_name, "model_type": llm.model_type,
57
+ "api_key": API_KEY, "api_base": LLM_BASE_URL})
58
 
59
  if not UserService.save(**user_info):
60
  print("\033[93m【ERROR】\033[0mcan't init admin.")