We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4eedec commit 4382dcaCopy full SHA for 4382dca
examples/openai/platform-as-tool.php
@@ -43,10 +43,8 @@
43
// The agent can now use ElevenLabs for speech-to-text while using OpenAI for reasoning
44
$audioPath = dirname(__DIR__, 2).'/fixtures/audio.mp3';
45
$messages = new MessageBag(
46
- Message::ofUser(sprintf(
47
- 'I have an audio file. Please transcribe it and tell me what it says. Audio: %s',
48
- Audio::fromFile($audioPath)
49
- ))
+ Message::ofUser('I have an audio file. Please transcribe it and tell me what it says.'),
+ Message::ofUser(Audio::fromFile($audioPath)),
50
);
51
52
$result = $agent->call($messages);
0 commit comments