|
oc_chat
|
Go to the source code of this file.
Classes | |
| class | oc_chat.core.endpoint_registry.EndpointRegistry |
Namespaces | |
| namespace | oc_chat |
| namespace | oc_chat.core |
| namespace | oc_chat.core.endpoint_registry |
Functions | |
| bool | oc_chat.core.endpoint_registry._remote_allowed () |
| LANPolicy | oc_chat.core.endpoint_registry.classify_lan_policy (str base_url) |
Variables | |
| oc_chat.core.endpoint_registry.LANPolicy = Literal["local", "lan", "remote", "blocked"] | |
| oc_chat.core.endpoint_registry._LOCAL_HOSTS = frozenset({"localhost", "127.0.0.1", "::1", "0.0.0.0"}) | |
| str | oc_chat.core.endpoint_registry._ENV_VAR_BASE_URLS = "OLLAMA_BASE_URLS" |
| str | oc_chat.core.endpoint_registry._ENV_VAR_ALLOW_REMOTE = "OC_CHAT_ALLOW_REMOTE_ENDPOINTS" |
| oc_chat.core.endpoint_registry._ENV_ENTRY_RE = re.compile(r"^\s*([A-Za-z0-9_.\-]+)\s*=\s*(\S.*?)\s*$") | |