Skip to content

Commit 56055ce

Browse files
committed
fix: OpenAiCompatConfig::ollama missing max_request_body_bytes field
1 parent ef0856b commit 56055ce

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

rust/crates/api/src/providers/openai_compat.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ impl OpenAiCompatConfig {
9696
api_key_env: "OLLAMA_API_KEY",
9797
base_url_env: "OLLAMA_BASE_URL",
9898
default_base_url: DEFAULT_OLLAMA_BASE_URL,
99+
// Ollama is local — no practical limit, use a generous 100MB
100+
max_request_body_bytes: OPENAI_MAX_REQUEST_BODY_BYTES,
99101
}
100102
}
101103

0 commit comments

Comments
 (0)