mehmet0001 commited on
Commit
93ee75e
·
verified ·
1 Parent(s): 2c349fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 only according to the information provided below. Dont direct the user to any sources but give them answers based on those sources.
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=[{"role":"user","content":prompt}])
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 = ""