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 0171c67 commit 72e3ee7Copy full SHA for 72e3ee7
examples/openai/additional-model.php
@@ -37,16 +37,13 @@
37
catalog: $modelCatalog
38
);
39
40
-// Use the transcription model
41
-$transcribeModel = $modelCatalog->getModel('gpt-4o-mini-transcribe');
42
-
43
$messages = new MessageBag(
44
Message::ofUser(
45
'Please transcribe this audio file.',
46
Audio::fromFile(dirname(__DIR__, 2).'/fixtures/audio.mp3'),
47
),
48
49
50
-$result = $platform->invoke($transcribeModel, $messages);
+$result = $platform->invoke($modelCatalog->getModel('gpt-4o-mini-transcribe'), $messages);
51
52
echo $result->getResult()->getContent().\PHP_EOL;
0 commit comments