vllm - 💡(How to fix) Fix [RFC]: Add support for Cohere's /v2/chat HTTP API entry point

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Motivation.

vLLM does not currently support the Cohere Chat v2 api. While similar to chat completions, this api has a number of different fields, including notably, citations present within the assistant messages which should then be rendered into the prompt. This functionality is important to many of our users and so it would be needed for them to be able to use cohere models with vLLM directly.

Proposed Change.

The proposed change is to add a cohere/v2/chat entry point that renders the request using the Melody library's prompt rendering functions. The flow would be very similar to the create_chat_completion function, but with render_chat calling the melody library to produce the rendered chat template prompt. Common logic could also be potentially refactored into a shared class. Output parsing logic is already in place and would not need to change.

Feedback Period.

No response

CC List.

No response

Any Other Things.

No response

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

vllm - 💡(How to fix) Fix [RFC]: Add support for Cohere's /v2/chat HTTP API entry point