chatboxai/chatbox · error · ApiError
JSON.stringify(json)
Error message
JSON.stringify(json)
What it means
Error "JSON.stringify(json)" thrown in chatboxai/chatbox.
Source
Thrown at src/shared/providers/definitions/models/deepseek.ts:93
if (isDeepSeekWeakToolUse(this.options.model.modelId, scope)) return false
return super.isSupportToolUse()
}
isSupportReasoning() {
return isDeepSeekReasoningModel(this.options.model.modelId)
}
async listModels(): Promise<ProviderModelInfo[]> {
const res = await this.dependencies.request.apiRequest({
url: 'https://api.deepseek.com/models',
method: 'GET',
headers: {
Authorization: `Bearer ${this.options.apiKey}`,
},
})
const json = await res.json()
if (!json.data) {
throw new ApiError(JSON.stringify(json))
}
return json.data
.map((m: { id: string; owned_by?: string }) => ({
modelId: m.id,
type: 'chat' as const,
}))
.sort((a: ProviderModelInfo, b: ProviderModelInfo) => a.modelId.localeCompare(b.modelId))
}
}
View on GitHub (pinned to 81571269ad)
Solutions
- Verify the DeepSeek API key is valid and has not been revoked.
- Check network connectivity to https://api.deepseek.com.
- Read the stringified response body for the upstream error detail (e.g. insufficient balance, invalid key).
Example fix
const json = await res.json()
if (!json.data) {
console.error('DeepSeek listModels error:', json)
} When it happens
Trigger: Thrown at src/shared/providers/definitions/models/deepseek.ts:93 when the library encounters an invalid state.
Common situations: Occurs in src/shared/providers/definitions/models/deepseek.ts when the DeepSeek API returns an error response whose JSON body is thrown as an ApiError.
AI-assisted analysis of chatboxai/chatbox@81571269ad (2026-08-12).
Data as JSON: /api/errors/020cad3b092a1490.
Report an issue: GitHub.