Skip to main content

OC (OpenAI Compatible) Provider

Prerequisites​

  • You must have configured an API key for the openai compatible provider. See the API Keys section for more information.
OPENAI_API_COMPATIBLE_SERVICE_API_KEY=your_api_key
  • You must set the base url for the openai compatible endpoint.
OPENAI_BASE_URL=https://api.oepnaicompatible.com/v1

(Make sure it supports the openai vision capabilities eg. image_url and not just simple text completion like deepseek does). For example openrouter is a truly openai compatible, but there is already a section for that.

Most Basic Schema​

~/.config/gowall/schema.yml
schemas:
- name: "oc"
config:
ocr:
provider: "oc"
model: "your_model_name"
gowall ocr img.png -s oc

Please refer to the schemas section for more information on how to use schemas with rate limiting,pre/post processing options,text correction etc...