Spaces:
Running
Running
update.py
#2
by
Reaper200
- opened
app.py
CHANGED
@@ -460,7 +460,7 @@ async def respond(
|
|
460 |
if searchBeta:
|
461 |
messages.append({"role": "system", "content": searchPrompt});
|
462 |
if betterSystemPrompt:
|
463 |
-
messages.append({"role": "system", "content": f"
|
464 |
else:
|
465 |
messages.append({"role": "system", "content": system_message});
|
466 |
|
@@ -587,7 +587,7 @@ demo = gr.ChatInterface(
|
|
587 |
description=f"A OpenAI API proxy!<br/>View API docs [here](/api/v1/docs) <strong>[Yes you can use this as an API in a simpler manner]</strong>.<br/><strong>[Last update: {lastUpdateMessage}]</strong> Also you can only submit images to vision models; txt/code/etc. to all models.",
|
588 |
multimodal=True,
|
589 |
additional_inputs=[
|
590 |
-
gr.Textbox(value="You are a helpful
|
591 |
gr.Dropdown(choices=models, value="gpt-4o-mini-2024-07-18", label="Model"),
|
592 |
gr.Slider(minimum=1, maximum=4096, value=4096, step=1, label="Max new tokens"),
|
593 |
gr.Slider(minimum=0.1, maximum=2.0, value=0.7, step=0.05, label="Temperature"),
|
|
|
460 |
if searchBeta:
|
461 |
messages.append({"role": "system", "content": searchPrompt});
|
462 |
if betterSystemPrompt:
|
463 |
+
messages.append({"role": "system", "content": f"you are an employee management information system expert named {model_name}. The current time is {time.strftime('%Y-%m-%d %H:%M:%S')}. Please adhere to only the scope of Employee management information system, Ensure your responses are accurate, respectful, and within the scope of Employee management information system."});
|
464 |
else:
|
465 |
messages.append({"role": "system", "content": system_message});
|
466 |
|
|
|
587 |
description=f"A OpenAI API proxy!<br/>View API docs [here](/api/v1/docs) <strong>[Yes you can use this as an API in a simpler manner]</strong>.<br/><strong>[Last update: {lastUpdateMessage}]</strong> Also you can only submit images to vision models; txt/code/etc. to all models.",
|
588 |
multimodal=True,
|
589 |
additional_inputs=[
|
590 |
+
gr.Textbox(value="You are a very helpful employee management system expert.", label="System message"),
|
591 |
gr.Dropdown(choices=models, value="gpt-4o-mini-2024-07-18", label="Model"),
|
592 |
gr.Slider(minimum=1, maximum=4096, value=4096, step=1, label="Max new tokens"),
|
593 |
gr.Slider(minimum=0.1, maximum=2.0, value=0.7, step=0.05, label="Temperature"),
|