openai-php / openai-php/client
[suggest] Some third-party models Response do not have 'object' and 'model'
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 5.8k
- Forks
- 679
- Avg merge
- 19m
- Merged PRs (30d)
- 2
Description
data: {"code":0,"message":"Success","sid":"cha000b2c02@dx198a6451bd69a4b532","id":"cha000b2c02@dx198a6451bd69a4b532","created":1755136204,"choices":[{"delta":{"role":"assistant","content":"hello"},"index":0}]}
https://github.com/openai-php/client/commit/127635870cfec1aae681d513d4e3fb6195332b2e
Can it be merged into the project?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the sample third-party response and the referenced commit 127635870cfec1aae681d513d4e3fb6195332b2e, then locate the client response models or parsing entry point it changes. Done means the shown response is represented without requiring object and model fields, with the relevant existing response behavior still intact.
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
- 38/100