Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ client = OpenAI(
|
|
12 |
base_url="https://openrouter.ai/api/v1",
|
13 |
api_key=os.environ["OPENROUTER_API_KEY"],
|
14 |
)
|
15 |
-
|
16 |
def openrouter_chat(user_message, history):
|
17 |
"""Send user_message to mistralai/devstral-small:free and append to history."""
|
18 |
# build the messages list
|
@@ -34,4 +34,3 @@ with gr.Blocks() as demo:
|
|
34 |
msg_in = gr.Textbox(placeholder="Type your question here…", label="You")
|
35 |
msg_in.submit(openrouter_chat, inputs=[msg_in, chatbot], outputs=[chatbot, msg_in])
|
36 |
demo.launch()
|
37 |
-
#mistralai/Devstral-Small-2505
|
|
|
12 |
base_url="https://openrouter.ai/api/v1",
|
13 |
api_key=os.environ["OPENROUTER_API_KEY"],
|
14 |
)
|
15 |
+
#mistralai/Devstral-Small-2505
|
16 |
def openrouter_chat(user_message, history):
|
17 |
"""Send user_message to mistralai/devstral-small:free and append to history."""
|
18 |
# build the messages list
|
|
|
34 |
msg_in = gr.Textbox(placeholder="Type your question here…", label="You")
|
35 |
msg_in.submit(openrouter_chat, inputs=[msg_in, chatbot], outputs=[chatbot, msg_in])
|
36 |
demo.launch()
|
|