Updating CreateResponseChoice to support gpt-4o model's responses
What:
[x] Bug Fix
[ ] New Feature
Description:
Using the new GPT 4o model, you can't use the completion()->createStreamed() method since response is now different.
A) The base API Url needs to be manually set to https://api.openai.com/v1/chat when declaring a new client.
B) The response from the completion includes "choices", but using GPT-4o model the text result now comes from $attributes['delta']['content'] instead of $attributes['test']
Updating CreateResponseChoice to support gpt-4o model's responses
What:
Description:
Using the new GPT 4o model, you can't use the
completion()->createStreamed()
method since response is now different.A) The base API Url needs to be manually set to
https://api.openai.com/v1/chat
when declaring a new client. B) The response from the completion includes "choices", but using GPT-4o model the text result now comes from$attributes['delta']['content']
instead of$attributes['test']