Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ function ApiMethod(props: ApiMethodProps) {
key.
</text>
<text fg={theme.text}>
Go to <span style={{ fg: theme.primary }}>https://altimate.ai/zen</span> to get a key
Go to <span style={{ fg: theme.primary }}>https://opencode.ai/zen</span> to get a key
</text>
</box>
),
Expand All @@ -235,7 +235,7 @@ function ApiMethod(props: ApiMethodProps) {
with generous usage limits.
</text>
<text fg={theme.text}>
Go to <span style={{ fg: theme.primary }}>https://altimate.ai/zen</span> and enable Altimate Code Go
Go to <span style={{ fg: theme.primary }}>https://opencode.ai/zen</span> and enable Altimate Code Go
</text>
</box>
),
Expand Down
2 changes: 1 addition & 1 deletion packages/opencode/src/session/retry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export namespace SessionRetry {
if (MessageV2.APIError.isInstance(error)) {
if (!error.data.isRetryable) return undefined
if (error.data.responseBody?.includes("FreeUsageLimitError"))
return `Free usage exceeded, add credits https://altimate.ai/zen`
return `Free usage exceeded, add credits https://opencode.ai/zen`
return error.data.message.includes("Overloaded") ? "Provider is overloaded" : error.data.message
}

Expand Down
4 changes: 2 additions & 2 deletions packages/opencode/test/tool/fixtures/models-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -20977,9 +20977,9 @@
"id": "opencode",
"env": ["OPENCODE_API_KEY"],
"npm": "@ai-sdk/openai-compatible",
"api": "https://altimate.ai/zen/v1",
"api": "https://opencode.ai/zen/v1",
"name": "Altimate Code Zen",
"doc": "https://altimate.ai/docs/zen",
"doc": "https://opencode.ai/docs/zen",
Comment on lines +20980 to +20982
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Verify the new opencode.ai URLs are accessible

echo "Testing API endpoint accessibility..."
curl -I -s -o /dev/null -w "%{http_code}" "https://opencode.ai/zen/v1" | grep -E "^(200|301|302|401|403)" && echo " ✓ API endpoint is accessible" || echo " ✗ API endpoint may not be accessible"

echo "Testing documentation URL accessibility..."
curl -I -s -o /dev/null -w "%{http_code}" "https://opencode.ai/docs/zen" | grep -E "^(200|301|302)" && echo " ✓ Documentation URL is accessible" || echo " ✗ Documentation URL may not be accessible"

Repository: AltimateAI/altimate-code

Length of output: 225


🏁 Script executed:

#!/bin/bash
# Get detailed HTTP status for the API endpoint
echo "API Endpoint HTTP Status:"
curl -I -s "https://opencode.ai/zen/v1" | head -1

echo ""
echo "Full response headers for API endpoint:"
curl -I -s "https://opencode.ai/zen/v1" | head -5

echo ""
echo "Documentation URL HTTP Status:"
curl -I -s "https://opencode.ai/docs/zen" | head -1

Repository: AltimateAI/altimate-code

Length of output: 316


The API endpoint is broken and must be fixed before merging.

The verification reveals that the API endpoint https://opencode.ai/zen/v1 returns HTTP 404 (Not Found), making it inaccessible. The documentation URL https://opencode.ai/docs/zen is accessible (HTTP 200), but the broken API endpoint is a critical blocker since this URL is loaded in production code without validation.

Do not merge until the API endpoint URL is corrected or confirmed to be working.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/opencode/test/tool/fixtures/models-api.json` around lines 20980 -
20982, The "api" property in the models-api.json entry where "name" is "Altimate
Code Zen" currently points to the broken URL "https://opencode.ai/zen/v1";
update that "api" value to the correct, verified endpoint (or null/empty if
there is no production API) and ensure the config consumer validates the
endpoint before using it; locate the JSON object with keys "name": "Altimate
Code Zen", "api": "https://opencode.ai/zen/v1", and "doc":
"https://opencode.ai/docs/zen" and either replace the "api" value with the
confirmed working URL or remove/disable it and add runtime validation that
checks the endpoint returns 200 before loading.

"models": {
"glm-4.7": {
"id": "glm-4.7",
Expand Down
Loading