xp-forge / openai

OpenAI APIs for XP Framework
0 stars 0 forks source link

Realtime API bugs tracking #18

Open thekid opened 1 week ago

thekid commented 1 week ago

I found that if you input only text, it is very unreliable, I also found bugs where it would return seemingly random image information or unrelated text. Source

See also

thekid commented 1 week ago

First response contains JSON when using text-only - happens frequently

It seeming helps to set modalities to text only in the session instead of just supplying it along with the response.create message.

$api->transmit([
  'type' => 'session.update',
  'session' => [
    'instructions'   => 'You are LernGPT.',
    'turn_detection' => null,
    'modalities'     => ['text'],
  ],
]);