Upload main.py
Browse files- 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 |
-
|
| 646 |
file_content=file_content,
|
| 647 |
-
|
| 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)
|