Add provider interface and OpenAI-compatible provider #5

Closed
opened 2026-07-20 15:53:55 +01:00 by nimmo · 0 comments
Owner

Replace the Ollama-only model call with a provider-independent interface.

Scope:

  • Define structured review request/response provider contracts.
  • Move Ollama behind the contract.
  • Add an OpenAI-compatible HTTP provider with explicit credential/config handling.
  • Keep provider code isolated from Forgejo, prompts, analysis, and publishing.

Acceptance:

  • Ollama behavior remains covered by tests.
  • A repository can select either provider without code changes.
Replace the Ollama-only model call with a provider-independent interface. Scope: - Define structured review request/response provider contracts. - Move Ollama behind the contract. - Add an OpenAI-compatible HTTP provider with explicit credential/config handling. - Keep provider code isolated from Forgejo, prompts, analysis, and publishing. Acceptance: - Ollama behavior remains covered by tests. - A repository can select either provider without code changes.
nimmo closed this issue 2026-07-20 20:06:58 +01:00
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nimmo/forgejo-auto-pr-review#5
No description provided.