eca
eca copied to clipboard
Support openai-chat api for custom providers
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 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.