mirror of
https://github.com/katanemo/plano.git
synced 2026-06-02 14:35:14 +02:00
making Messages.Content optional, and having the upstream LLM fail if the right fields aren't set (#699)
Co-authored-by: Salman Paracha <salmanparacha@MacBook-Pro-342.local>
This commit is contained in:
parent
626f556cc6
commit
cdc1d7cee2
17 changed files with 294 additions and 133 deletions
|
|
@ -402,7 +402,7 @@ async fn handle_agent_chat(
|
|||
// and add it to the conversation history
|
||||
current_messages.push(OpenAIMessage {
|
||||
role: hermesllm::apis::openai::Role::Assistant,
|
||||
content: hermesllm::apis::openai::MessageContent::Text(response_text),
|
||||
content: Some(hermesllm::apis::openai::MessageContent::Text(response_text)),
|
||||
name: Some(agent_name.clone()),
|
||||
tool_calls: None,
|
||||
tool_call_id: None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue