extraplus commited on
Commit
db60cfe
·
verified ·
1 Parent(s): 5bf401b

Upload main.py

Browse files
Files changed (1) hide show
  1. backend/main.py +2 -3
backend/main.py CHANGED
@@ -642,10 +642,9 @@ async def api_chat_stream(
642
  else:
643
  prompt = model_manager.build_prompt(
644
  query=message,
645
- chat_history=chat_history,
646
  file_content=file_content,
647
- user_instructions=user_instructions,
648
- target_generation_tokens=tokens
649
  )
650
  prompt_meta = model_manager.last_prompt_meta
651
  tokens = model_manager.resolve_max_tokens(prompt, tokens)
 
642
  else:
643
  prompt = model_manager.build_prompt(
644
  query=message,
645
+ history=chat_history,
646
  file_content=file_content,
647
+ custom_instructions=user_instructions,
 
648
  )
649
  prompt_meta = model_manager.last_prompt_meta
650
  tokens = model_manager.resolve_max_tokens(prompt, tokens)