Docker: ollama: Server unavailable, error code: 349453
I created this space that allows me to use the ollama server endpoints:huggingface.coOllama - a Hugging Face Space by mano-wiiDiscover amazing ML apps made by the communityI can call “https://mano-wii-ollama.hf.space/api/chat”But the equivalent that is compatible with OpenAI’s API doesn’t work: “https://mano-wii-ollama.hf.space/v1/chat/completions”It returns{"error":{'proxy_note': 'Server unavailable, error code: 349453'}}.I saw other forums about this same error.Locally it seems to work,  but on huggingface there is this problem.To test, you can use the code from this page:github.comollama/ollama/blob/main/examples/python-simplechat/client.pyimport json
import requests

# NOTE: ollama must be running for this to work, start the ollama app or run `ollama serve`
model = "llama3"  # TODO: update this for whatever model you wish to use


def chat(messages):
    r = requests.post(
        "http://0.0.0.0:11434/api/chat",
        json={"model": model, "messages": messages, "stream": True},
	stream=True
    )
    r.raise_for_status()
    output = ""

    for line in r.iter_lines():
        body = json.loads(line)
        if "error" in body:
            raise Exception(body["error"])This file has been truncated.show original