You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I do have ollama with llava:latest nomic-embed-text and adrienbrault/...hermies2...
Only thing I've changed was to add host="127.0.0.1:port" to the llm loads (I'd recommend adding that to the readme's) which allowed assistant.py to work, though pydandic_output.py just hangs, while both image.py and tool_call.py produce the following:
/ai/pd$ python tool_call.py
⠋ Working...
Traceback (most recent call last):
File "/ai/pd/tool_call.py", line 12, in
assistant.print_response("Whats happening in the US?", markdown=True)
File "/ai/pd/lib/python3.10/site-packages/phi/assistant/assistant.py", line 1470, in print_response
for resp in self.run(message=message, messages=messages, stream=True, **kwargs):
File "/ai/pd/lib/python3.10/site-packages/phi/assistant/assistant.py", line 890, in _run
for response_chunk in self.llm.response_stream(messages=llm_messages):
File "/ai/pd/lib/python3.10/site-packages/phi/llm/ollama/chat.py", line 269, in response_stream
for response in self.invoke_stream(messages=messages):
File "/ai/pd/lib/python3.10/site-packages/phi/llm/ollama/chat.py", line 96, in invoke_stream
yield from self.client.chat(
File "~/ai/pd/lib/python3.10/site-packages/ollama/_client.py", line 84, in _stream
raise ResponseError(e.response.text, e.response.status_code) from None
ollama._types.ResponseError: {"detail":"Method Not Allowed"}
The text was updated successfully, but these errors were encountered:
I do have ollama with llava:latest nomic-embed-text and adrienbrault/...hermies2...
Only thing I've changed was to add host="127.0.0.1:port" to the llm loads (I'd recommend adding that to the readme's) which allowed assistant.py to work, though pydandic_output.py just hangs, while both image.py and tool_call.py produce the following:
/ai/pd$ python tool_call.py/ai/pd/tool_call.py", line 12, in⠋ Working...
Traceback (most recent call last):
File "
assistant.print_response("Whats happening in the US?", markdown=True)
File "
/ai/pd/lib/python3.10/site-packages/phi/assistant/assistant.py", line 1470, in print_response/ai/pd/lib/python3.10/site-packages/phi/assistant/assistant.py", line 890, in _runfor resp in self.run(message=message, messages=messages, stream=True, **kwargs):
File "
for response_chunk in self.llm.response_stream(messages=llm_messages):
File "
/ai/pd/lib/python3.10/site-packages/phi/llm/ollama/chat.py", line 269, in response_stream/ai/pd/lib/python3.10/site-packages/phi/llm/ollama/chat.py", line 96, in invoke_streamfor response in self.invoke_stream(messages=messages):
File "
yield from self.client.chat(
File "~/ai/pd/lib/python3.10/site-packages/ollama/_client.py", line 84, in _stream
raise ResponseError(e.response.text, e.response.status_code) from None
ollama._types.ResponseError: {"detail":"Method Not Allowed"}
The text was updated successfully, but these errors were encountered: