Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to fix it?"ollama._types.ResponseError" #437

Open
JunmingRen opened this issue Sep 9, 2024 · 0 comments
Open

how to fix it?"ollama._types.ResponseError" #437

JunmingRen opened this issue Sep 9, 2024 · 0 comments

Comments

@JunmingRen
Copy link

Traceback (most recent call last):
File "/home/mingjun/agentscope/family_test/test.py", line 32, in
x = dialogAgent(x)
File "/home/mingjun/agentscope/src/agentscope/agents/agent.py", line 278, in call
res = self.reply(*args, **kwargs)
File "/home/mingjun/agentscope/src/agentscope/agents/dialog_agent.py", line 76, in reply
response = self.model(prompt)
File "/home/mingjun/agentscope/src/agentscope/models/model.py", line 115, in checking_wrapper
return model_call(self, *args, **kwargs)
File "/home/mingjun/agentscope/src/agentscope/models/ollama_model.py", line 198, in call
response = self.client.chat(**kwargs)
File "/mnt/data/mingjun/anaconda3/envs/agentscope/lib/python3.9/site-packages/ollama/_client.py", line 180, in chat
return self._request_stream(
File "/mnt/data/mingjun/anaconda3/envs/agentscope/lib/python3.9/site-packages/ollama/_client.py", line 98, in _request_stream
return self._stream(*args, **kwargs) if stream else self._request(*args, **kwargs).json()
File "/mnt/data/mingjun/anaconda3/envs/agentscope/lib/python3.9/site-packages/ollama/_client.py", line 74, in _request
raise ResponseError(e.response.text, e.response.status_code) from None
ollama._types.ResponseError

it happens like above, when i try to get its response?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant