Settings

Theme

A proxy to translate OpenCode OpenAI calls to native Ollama, allows ctx >4096

github.com

2 points by MK2k · 1 comment

Reader

1 thread
MK2kOP

A lightweight HTTP proxy that translates OpenAI /v1/chat/completions requests to Ollama's native /api/chat API and back.

Ollama's OpenAI-compatible endpoint (/v1/chat/completions) has serious runtime configuration limitations.

Without custom model files, parameters such as context size cannot be centrally controlled. Requests through the OpenAI compatibility layer may run with Ollama defaults instead of the desired runtime settings.

This proxy uses Ollama's native /api/chat endpoint directly, where runtime parameters are explicitly supported.

One .env file configures all models centrally.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection