eca icon indicating copy to clipboard operation
eca copied to clipboard

Support openai-chat api for custom providers

Open ericdallo opened this issue 1 year ago • 1 comments

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

API docs This will unlock the power to connect to almost any provider as most providers use anthropic or openai chat completion API.

  • We don't need to expose this as a built-in provider, we already support openai responses API completly.
  • chat completion doesn't support reasoning events, It's ok to handle like other tools: show reason as thinking blocks (<think>...</think>).

Related to #10

ericdallo avatar Aug 15 '25 01:08 ericdallo

@ericdallo The reasoning is a little different than I originally thought. Some models (Gemini) do return reasoning, and we have to process it. On the other hand, QWEN returns thinking in the response itself.

zikajk avatar Aug 15 '25 04:08 zikajk