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

ollama._types.ResponseError ResponseError(e.response.text, e.response.status_code) from None #396

Open
Siki-cloud opened this issue Dec 28, 2024 · 2 comments

Comments

@Siki-cloud
Copy link

Siki-cloud commented Dec 28, 2024

when i ran the following code, I got the error ollama._types.ResponseError, I don't why this happened, can anyone help me ? thanks in advance.

code

def test():
    resp = ollama.chat(
        model='llama3.1:8b', messages=[{'role': 'user', 'content': 'output the number from 1 to 5'}])  
    print(resp)

test()

here are the downloaded LLM:

/code/gencf# ollama list
NAME               ID              SIZE      MODIFIED
llama3.1:8b        46e0c10c039e    4.9 GB    53 minutes ago
llama3.1:latest    46e0c10c039e    4.9 GB    55 minutes ago
mistral:latest     f974a74358d6    4.1 GB    9 hours ago

Error:

Traceback (most recent call last):
  File "/code/gencf/multi_gpu_proc_generate.py", line 270, in <module>
    test()
  File "/code/gencf/multi_gpu_proc_generate.py", line 228, in test
    resp = ollama.chat(
  File "/root/anaconda3/envs/llmxq12/lib/python3.10/site-packages/ollama/_client.py", line 332, in chat
    return self._request(
  File "/root/anaconda3/envs/llmxq12/lib/python3.10/site-packages/ollama/_client.py", line 177, in _request
    return cls(**self._request_raw(*args, **kwargs).json())
  File "/root/anaconda3/envs/llmxq12/lib/python3.10/site-packages/ollama/_client.py", line 122, in _request_raw
    raise ResponseError(e.response.text, e.response.status_code) from None
ollama._types.ResponseError

@Siki-cloud Siki-cloud changed the title ollama._types.ResponseError when running ollama.chat() ollama._types.ResponseError ResponseError(e.response.text, e.response.status_code) from None Dec 28, 2024
@immmor
Copy link

immmor commented Jan 2, 2025

Got the same error for Win10.

@Rakshitha7989
Copy link

getting the same error
raise ResponseError(e.response.text, e.response.status_code) from None
ollama._types.ResponseError: pull model manifest: file does not exist

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

3 participants