soul: OpenAI-compatible provider path for chat (Ollama/OpenAI/Grok/Gemini) — v1 #65

Open
tim.lingo wants to merge 0 commits from feat/openai-format-providers into main
Member

Additive OpenAI-format chat path so the brain can serve non-Anthropic providers (Ollama/OpenAI/Grok/Gemini), not just Anthropic. Anthropic path untouched + default.

Scope (v1): plain chat completion only — NO tools/agentic loop in OpenAI format yet (follow-up).

Rung: SOURCE-WRITTEN + PARSES (elc --target=c chat.el exits 0). NOT built/tested — needs dist/soul.c rebuild + E2E. Full handoff (build, env-wiring, test plan) in docs/specs/SPEC-soul-openai-providers.md.

When NEURON_LLM_0_FORMAT=openai and NEURON_LLM_0_URL set, basic chat builds an OpenAI chat/completions request and parses choices[0].message.content; else the Anthropic agentic_loop runs (default).

Generated with Claude Code

Additive OpenAI-format chat path so the brain can serve non-Anthropic providers (Ollama/OpenAI/Grok/Gemini), not just Anthropic. Anthropic path untouched + default. Scope (v1): plain chat completion only — NO tools/agentic loop in OpenAI format yet (follow-up). Rung: SOURCE-WRITTEN + PARSES (elc --target=c chat.el exits 0). NOT built/tested — needs dist/soul.c rebuild + E2E. Full handoff (build, env-wiring, test plan) in docs/specs/SPEC-soul-openai-providers.md. When NEURON_LLM_0_FORMAT=openai and NEURON_LLM_0_URL set, basic chat builds an OpenAI chat/completions request and parses choices[0].message.content; else the Anthropic agentic_loop runs (default). Generated with Claude Code
tim.lingo added 1 commit 2026-06-30 23:59:53 +00:00
Additive, Anthropic path untouched + default. When NEURON_LLM_0_FORMAT=openai and NEURON_LLM_0_URL
set, basic chat turns build an OpenAI chat/completions request and parse choices[0].message.content.
v1 = plain completion, NO tools/agentic loop yet (follow-up). Unblocks all OpenAI-format providers
at once. PARSES (elc chat.el exit 0); NOT yet built/tested — needs the soul rebuild (dist/soul.c) + E2E.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Some required checks failed
Neuron Soul CI / build (pull_request) Failing after 17m19s
This branch is already included in the target branch. There is nothing to merge.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/openai-format-providers:feat/openai-format-providers
git checkout feat/openai-format-providers
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: neuron-technologies/neuron#65