angelxmoreno / angelxmoreno/PromptClasses

Adding (Better) Exception handling

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.