mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
test asyncio_tool.py with qwen32B(distrilled by deepseek-r1) #224
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SoulProficiency on GitHub (Feb 18, 2025).
Prompt: What is three plus one?
Traceback (most recent call last):
File "/home/wxj/llm/llm_test/asyncio_tools.py", line 91, in
asyncio.run(main())
File "/usr/python/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/python/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/home/wxj/llm/llm_test/asyncio_tools.py", line 57, in main
response: ChatResponse = await client.chat(
File "/usr/python/lib/python3.10/site-packages/ollama/_client.py", line 837, in chat
return await self._request(
File "/usr/python/lib/python3.10/site-packages/ollama/_client.py", line 682, in _request
return cls(**(await self._request_raw(*args, **kwargs)).json())
File "/usr/python/lib/python3.10/site-packages/ollama/_client.py", line 626, in _request_raw
raise ResponseError(e.response.text, e.response.status_code) from None
ollama._types.ResponseError: registry.ollama.ai/library/qwen32_ds:latest does not support tools (status code: 400)
@ParthSareen commented on GitHub (Feb 20, 2025):
Deepseek does not support tools at the moment
@SoulProficiency commented on GitHub (Feb 20, 2025):
i test deepseek-r1-32b(qwen32), it works:
based on qwen2.5, its easy to do
here is my step:
by the way,distilled model can follow the official model but the deepseek-r1 671B may not work