-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement realtime API #15
Conversation
The structure for the tools element differs from that used in the REST API in that it has no function substructure: Realtime[
[
'type' => 'function',
'name' => 'get_person',
'description' => 'Gets a person',
'parameters' => [...]
]
] REST[
[
'type' => 'function',
'function' => [
'name' => 'get_person',
'description' => 'Gets a person',
'parameters' => [...]
]
]
] This means the |
Should be return the session.created event from the |
Integration "test": https://gist.github.com/thekid/678620dfb548e6a972cb268c8b5b7899 |
...or we make use of something like xp-forge/marshalling#7 |
This pull request implements #8 in a new
com.openai.realtime
package. Quoting the OpenAI platform docs:The Azure API also supports images by passing
['type' => 'ms_image', 'image' => 'data:image/webp;base64,...']
, which is not documented but can be reversed engineered from the API's error messages.Example
This example uses Azure OpenAI version:
See also