openai-php / openai-php/client

[suggest] Some third-party models Response do not have 'object' and 'model'

Open
#644 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Non-OpenAI Model
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.