Skip to content

Commit

Permalink
fixed ollama example code
Browse files Browse the repository at this point in the history
  • Loading branch information
brnaba-aws committed Oct 22, 2024
1 parent b5ddec4 commit 807f661
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/src/content/docs/agents/examples/ollama-agent.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ The [process_request](../overview#abstract-method-processrequest) method must be
)

except Exception as error:
Logger.logger.error("Error getting stream from Ollama model:", error)
Logger.get_logger().error("Error getting stream from Ollama model:", error)
raise error


Expand Down
2 changes: 1 addition & 1 deletion examples/chat-chainlit-app/ollamaAgent.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async def handle_streaming_response(self, messages: List[Dict[str, str]]) -> Con
)

except Exception as error:
Logger.error("Error getting stream from Ollama model:", error)
Logger.get_logger().error("Error getting stream from Ollama model:", error)
raise error


Expand Down
2 changes: 1 addition & 1 deletion examples/chat-chainlit-app/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
chainlit==1.2.0
multi_agent_orchestrator==0.0.16
multi_agent_orchestrator==0.0.18
ollama==0.3.3

0 comments on commit 807f661

Please sign in to comment.