I'm not able to get btca to work with minimax-m2.1-free from opencode zen (it worked in previous versions), however, it does work for kimi-k2.5-free, for example:
$ btca connect -p opencode -m minimax-m2.1-free
Model updated: opencode/minimax-m2.1-free
$ btca ask -r effect -q "how does the http client work?"
loading resources...
creating collection...
125221 | const responseBody = await response.text();
125222 | const responseHeaders = extractResponseHeaders(response);
125223 | if (responseBody.trim() === "") {
125224 | return {
125225 | responseHeaders,
125226 | value: new APICallError({
^
AI_APICallError: Unauthorized
cause: undefined,
url: "https://opencode.ai/zen/v1/chat/completions",
requestBodyValues: {
model: "minimax-m2.1-free",
user: undefined,
max_tokens: undefined,
temperature: undefined,
top_p: undefined,
frequency_penalty: undefined,
presence_penalty: undefined,
response_format: undefined,
stop: undefined,
seed: undefined,
reasoning_effort: undefined,
verbosity: undefined,
messages: [
[Object ...], [Object ...]
],
tools: [
[Object ...], [Object ...], [Object ...], [Object ...]
],
tool_choice: "auto",
stream: true,
stream_options: undefined,
},
statusCode: 401,
responseHeaders: {
"cf-placement": "remote-MIA",
"cf-ray": "9c7cc909b9dd431b-EWR",
connection: "keep-alive",
"content-type": "application/json; charset=utf-8",
date: "Mon, 02 Feb 2026 21:29:40 GMT",
server: "cloudflare",
"transfer-encoding": "chunked",
vary: "accept-encoding",
},
responseBody: "",
isRetryable: false,
data: undefined,
vercel.ai.error: true,
vercel.ai.error.AI_APICallError: true,
at /$bunfs/root/index.js:125226:30
at processTicksAndRejections (native:7:39)
Error: Unauthorized
$ btca connect -p opencode -m kimi-k2.5-free
Model updated: opencode/kimi-k2.5-free
$ btca ask -r effect -q "how does the http client work?"
loading resources...
creating collection...
<thinking>
The user wants to know how the HTTP client works in the Effect TS library. Let me start by exploring the structure of the effect directory to find relevant files related to HTTP client functionality.
</thinking>
[list]
<thinking>
Let me look at the packages directory to find HTTP-related packages.
Other info
Bun v1.3.8
btca v1.0.73
I'm not able to get btca to work with minimax-m2.1-free from opencode zen (it worked in previous versions), however, it does work for kimi-k2.5-free, for example:
Other info
Bun v1.3.8
btca v1.0.73