angelxmoreno / angelxmoreno/PromptClasses
Adding (Better) Exception handling
Open
enhancement
good first issue
- Dominant language
- PHP
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Sometimes the OpenAI response has errors. These get lost and `null` is returned without knowing the cause.
Exceptions should be thrown when
- The OpenAI response returns an error
- The choices array returns no content
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing how OpenAI responses are handled and where a missing result becomes null. Verify behavior for an error response and for a response whose choices array has no content; done means both cases raise informative exceptions instead of returning null.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100