Skip to content

docs: move OpenAI, Ollama, and Cohere field text into the specs - #4869

Merged
JakeSCahill merged 3 commits into
mainfrom
docs/descriptions-ai
Oct 8, 2026
Merged

JakeSCahill merged 3 commits into
mainfrom
docs/descriptions-ai

Conversation

@JakeSCahill

@JakeSCahill JakeSCahill commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #4863. Review that first; this PR's diff is against its branch.

Why

The published reference for these processors shows text from an overrides file in rp-connect-docs, not the descriptions in this repo, so --help and docs.redpanda.com disagree. #4863 makes the docs come straight from the specs. This PR brings the reviewed wording into the OpenAI, Ollama, and Cohere specs so retiring the overrides loses nothing.

Descriptions that were copied between processors now have one source:

  • Ollama model comes from modelField(), with examples per processor.
  • OpenAI transcription and translation share audioFileField() and audioPromptField().

Fact corrections

  • Cohere frequency_penalty and presence_penalty accept 0.0 to 1.0 in the Cohere API, not -2.0 to 2.0. The text now says so.
  • Ollama frequency_penalty and presence_penalty now state their -2.0 to 2.0 range, which the lint rules already enforce.

For reviewers

The Cohere lint rules still accept -2 to 2. I left them alone because tightening them would reject configs that validate today. If you agree the API range is right, I can tighten them here or in a follow-up.

Otherwise it's wording only. Behavior, defaults, and field flags are unchanged. The build, tests, and lint pass for the touched packages, and task docs passes.

Comment thread internal/impl/cohere/chat_processor.go Resolved
@JakeSCahill
JakeSCahill changed the base branch from docs/generate-antora-partials to docs/descriptions-data September 29, 2026 13:52
Comment thread internal/impl/cohere/chat_processor.go Resolved
Comment thread internal/impl/openai/chat_processor.go Resolved
@Leward
Leward added this pull request to stack #4884 September 29, 2026 14:56
Comment thread internal/impl/cohere/chat_processor.go Resolved
@JakeSCahill
JakeSCahill force-pushed the docs/descriptions-ai branch from ffc6566 to eef9e49 Compare October 1, 2026 15:42
Comment thread internal/impl/cohere/chat_processor.go Resolved
@JakeSCahill
JakeSCahill force-pushed the docs/descriptions-ai branch from eef9e49 to 1b0b9fc Compare October 5, 2026 12:10
Comment thread internal/impl/cohere/chat_processor.go Resolved
@JakeSCahill
JakeSCahill force-pushed the docs/descriptions-ai branch from 1b0b9fc to 1b8d7f1 Compare October 5, 2026 14:43
Comment thread internal/impl/cohere/chat_processor.go Resolved
Comment thread internal/impl/cohere/chat_processor.go Resolved
Comment thread internal/impl/openai/chat_processor.go Resolved
@JakeSCahill
JakeSCahill force-pushed the docs/descriptions-ai branch from 1b8d7f1 to 0669cee Compare October 5, 2026 16:12
Comment thread internal/impl/cohere/chat_processor.go Resolved
Comment thread internal/impl/cohere/chat_processor.go Resolved
@JakeSCahill
JakeSCahill force-pushed the docs/descriptions-ai branch 2 times, most recently from a185e0b to f62a71f Compare October 7, 2026 09:26
@JakeSCahill
JakeSCahill force-pushed the docs/descriptions-ai branch from f62a71f to cbc7455 Compare October 7, 2026 13:05
@JakeSCahill
JakeSCahill force-pushed the docs/descriptions-ai branch from cbc7455 to f177ceb Compare October 7, 2026 14:44
@JakeSCahill
JakeSCahill force-pushed the docs/descriptions-ai branch from f177ceb to bc32341 Compare October 8, 2026 07:58
@Leward
Leward self-requested a review October 8, 2026 13:33
@JakeSCahill
JakeSCahill force-pushed the docs/descriptions-ai branch 3 times, most recently from 4530126 to 9e95a9b Compare October 8, 2026 14:21
Base automatically changed from docs/descriptions-data to main October 8, 2026 14:21
Bring in the reviewed wording from the rp-connect-docs overrides, give
the model, audio file, and audio prompt fields one source each, and
correct the Cohere penalty ranges to match the Cohere API.
Also put a space in the openai tools: [] example so it is valid YAML.
@JakeSCahill
JakeSCahill force-pushed the docs/descriptions-ai branch from 9e95a9b to fe58025 Compare October 8, 2026 14:21
@JakeSCahill
JakeSCahill merged commit 592a76a into main Oct 8, 2026
8 checks passed
@JakeSCahill
JakeSCahill deleted the docs/descriptions-ai branch October 8, 2026 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants