- New providers: trae, windsurf, zed, workbuddy, codebuddy-intl
(registry + executor, wired into executors/index.js + registry/index.js)
- zed: port hosted cloud proxy from OmniRoute — RSA access-token → short-lived
LLM token exchange (shared/zedAuth.js) + NDJSON {event}/{status}/[DONE]
stream translated back to OpenAI via Claude/Gemini/OpenAI-Responses translators
- Provider icons (128x128 png) for the 5 new providers
- qoder + tokenRefresh provider tweaks
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
31 lines
990 B
JavaScript
31 lines
990 B
JavaScript
import { DefaultExecutor } from "./default.js";
|
|
|
|
/**
|
|
* CodeBuddyIntlExecutor — talks to https://www.codebuddy.ai/v2/chat/completions
|
|
*
|
|
* Same OpenAI-compatible-but-stream-only gateway behavior as codebuddy-cn:
|
|
* non-stream requests are rejected, and reasoning is surfaced only when the
|
|
* request carries the IDE's OpenAI-style reasoning params. Force stream and
|
|
* mirror reasoning_summary exactly like CodeBuddyExecutor.
|
|
*/
|
|
export class CodeBuddyIntlExecutor extends DefaultExecutor {
|
|
constructor() {
|
|
super("codebuddy-intl");
|
|
}
|
|
|
|
transformRequest(model, body, stream, credentials) {
|
|
const transformed = super.transformRequest(model, body, stream, credentials);
|
|
transformed.stream = true;
|
|
|
|
const eff = transformed.reasoning_effort;
|
|
if (eff === "none" || eff === "off") {
|
|
delete transformed.reasoning_effort;
|
|
} else if (eff) {
|
|
transformed.reasoning_summary = "auto";
|
|
}
|
|
return transformed;
|
|
}
|
|
}
|
|
|
|
export default CodeBuddyIntlExecutor;
|