Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ api_key = "sk-or-v1-5b41e7106feb9b982d4ef5a6aa0959993387ba2e5fc9830df1279418776e
|
|
8 |
|
9 |
openai_client = OpenAI(base_url="https://openrouter.ai/api/v1",api_key=api_key)
|
10 |
|
11 |
-
prompt_template = """Answer the question
|
12 |
## Information :
|
13 |
{}
|
14 |
|
@@ -62,7 +62,7 @@ if st.session_state.stage == "prompt-input":
|
|
62 |
extra_headers={},
|
63 |
extra_body={},
|
64 |
model="deepseek/deepseek-chat-v3-0324:free",
|
65 |
-
messages=
|
66 |
|
67 |
with st.chat_message("assistant"):
|
68 |
full_response = ""
|
|
|
8 |
|
9 |
openai_client = OpenAI(base_url="https://openrouter.ai/api/v1",api_key=api_key)
|
10 |
|
11 |
+
prompt_template = """Answer the question based on the information provided below. Dont forget about the message history.Dont direct the user to any sources but give them answers based on those sources content.
|
12 |
## Information :
|
13 |
{}
|
14 |
|
|
|
62 |
extra_headers={},
|
63 |
extra_body={},
|
64 |
model="deepseek/deepseek-chat-v3-0324:free",
|
65 |
+
messages=st.session_state.messages)
|
66 |
|
67 |
with st.chat_message("assistant"):
|
68 |
full_response = ""
|