Comments (11)
This bug still not resolved yet by OpenAi
For now, I have resolved it using regex, I'm extracting content directly from respone.
// Define the pattern to match
$pattern = '/"choices":\[\{"index":0,"delta":\{"content":"(.*?)"\}/';
// Use preg_match_all to find all matches
preg_match_all($pattern, $inputData, $matches);
// Extract content from the matches
$contents = $matches[1];
from open-ai.
I found this too,any solution??
from open-ai.
Could you please try the same request using the official OpenAI Python library? If there are no issues with Python and an issue exists with the PHP library, please reopen the ticket.
Py code should be like this:
response = openai.ChatCompletion.create(
model="gpt-3.5-turbo-16k",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Who won the world series in 2020?"},
{"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."},
{"role": "user", "content": "Where was it played?"}
]
)
from open-ai.
@orhanerday Hello, has this problem been resolved,
from open-ai.
@pingfuwei did you try on Python package with the same request?
from open-ai.
from open-ai.
If you got the same issue on python package, it is OpenAI related issue.
from open-ai.
I'm sorry for not giving timely feedback.
Yeah, it is OpenAI related issue.
When I reported the problem, openai was in trouble.
When openai fixed the problem everything was resolved.
thank you all the same
from open-ai.
Hi @iamaz007
Did you contact OpenAI?
from open-ai.
Nope, they don't even reply for hours.
I tested libraries, in Flutter, that issue is happening there too. so, for now we have to solve it on our own.
from open-ai.
Could you please ask this question on the OpenAI form? Maybe we can get better help from the community.
Please drop the post link over here. Thank you!
from open-ai.
Related Issues (20)
- 'answers' is not one of ['fine-tune'] - 'purpose' HOT 1
- Where are the error codes from the OpenAI documentation ? HOT 4
- OpenAI now has gpt-turbo-3.5 fine tuning the one you have currently is deprecated can you add the new api calls? HOT 4
- Auto-continuing when max_token limit reached HOT 1
- there is a responsibility for the temperature values HOT 1
- ChatGPT 4 API Support HOT 1
- text-davinci-003 is deprecated HOT 2
- ChatGPT request very slowly, up to 2-3 mins HOT 3
- Model API route no longer returning permissions HOT 3
- DALLE-3 HOT 1
- New Assistants API support? HOT 10
- Does the new speech-to-text api offer support? HOT 1
- Chat API: first event line gets split into two for streamed response HOT 1
- Sorry, you have been blocked HOT 5
- tts support HOT 2
- json_object HOT 2
- Obsolete README
- Function calling HOT 1
- Function Calling? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-ai.