Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,9 +43,7 @@ llm = ChatOpenAI(model="gpt-4o", temperature=0)
|
|
| 43 |
#llm_with_tools = llm.bind_tools(tools, parallel_tool_calls=False)
|
| 44 |
|
| 45 |
# System message
|
| 46 |
-
sys_msg = (
|
| 47 |
-
content="You are an AI assistant completing benchmark questions. Assume fictional inputs (e.g., video, image, audio, code) and do your best to guess the answer accurately. Always answer concisely and confidently."
|
| 48 |
-
)
|
| 49 |
|
| 50 |
def assistant(state: MessagesState):
|
| 51 |
return {"messages": [llm.invoke([sys_msg] + state["messages"])]}
|
|
|
|
| 43 |
#llm_with_tools = llm.bind_tools(tools, parallel_tool_calls=False)
|
| 44 |
|
| 45 |
# System message
|
| 46 |
+
sys_msg = SystemMessage(content="You are an AI assistant completing benchmark questions. Assume fictional inputs (e.g., video, image, audio, code) and do your best to guess the answer accurately. Always answer concisely and confidently.")
|
|
|
|
|
|
|
| 47 |
|
| 48 |
def assistant(state: MessagesState):
|
| 49 |
return {"messages": [llm.invoke([sys_msg] + state["messages"])]}
|