oc_chat
Loading...
Searching...
No Matches
client.py File Reference

Go to the source code of this file.

Classes

class  providers.ollama.client.OllamaClient

Namespaces

namespace  providers
namespace  providers.ollama
namespace  providers.ollama.client

Functions

http.client.HTTPConnection providers.ollama.client._connect (str base_url, int timeout=300)
None providers.ollama.client._raise_for_status (http.client.HTTPResponse resp, str base_url, str method, str path)
http.client.HTTPResponse providers.ollama.client._post (str base_url, str path, dict body, int timeout=300)
http.client.HTTPResponse providers.ollama.client._get (str base_url, str path, int timeout=30)

Variables

int providers.ollama.client._ERROR_BODY_TRUNCATE = 2048