Files
infiplot-web/packages
yuanzonghao 10359d1a01 fix(ai-client): improve error handling in chat and vision functions
- Add explicit check for empty choices array in both chat.ts and vision.ts
- Add optional chaining for message property access
- Throw descriptive error when API returns no content
- Use English comments consistent with project style
- Fixes debugging issues when upstream returns empty responses

Related to: chat.ts and vision.ts silent empty string return on malformed responses
2026-05-31 12:41:56 +08:00
..