Skip to content

Commit fd28dd3

Browse files
committed
fix: wrap finalMessage usage in altimate_change markers
1 parent 6b13e56 commit fd28dd3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/opencode/src/provider/error.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,9 @@ export namespace ProviderError {
314314
// altimate_change end
315315
return {
316316
type: "api_error",
317+
// altimate_change start — finalMessage carries the optional /models hint
317318
message: finalMessage,
319+
// altimate_change end
318320
statusCode: input.error.statusCode,
319321
isRetryable: input.providerID.startsWith("openai")
320322
? isOpenAiErrorRetryable(input.error)

0 commit comments

Comments
 (0)