Skip to content

Commit 4382dca

Browse files
committed
-
1 parent b4eedec commit 4382dca

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

examples/openai/platform-as-tool.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,8 @@
4343
// The agent can now use ElevenLabs for speech-to-text while using OpenAI for reasoning
4444
$audioPath = dirname(__DIR__, 2).'/fixtures/audio.mp3';
4545
$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-
))
46+
Message::ofUser('I have an audio file. Please transcribe it and tell me what it says.'),
47+
Message::ofUser(Audio::fromFile($audioPath)),
5048
);
5149

5250
$result = $agent->call($messages);

0 commit comments

Comments
 (0)