Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demo/src/Blog/Command/QueryCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __invoke(SymfonyStyle $io): int
$io->comment(\sprintf('Converting "%s" to vector & searching in Chroma DB ...', $search));
$io->comment('Results are limited to 4 most similar documents.');

$platformResponse = $this->platform->invoke(new Embeddings(), $search);
$platformResponse = $this->platform->invoke(new Embeddings(Embeddings::TEXT_3_SMALL), $search);
$queryResponse = $collection->query(
queryEmbeddings: [$platformResponse->asVectors()[0]->getData()],
nResults: 4,
Expand Down
2 changes: 1 addition & 1 deletion examples/azure/audio-transcript.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
env('AZURE_OPENAI_KEY'),
http_client(),
);
$model = new Whisper();
$model = new Whisper(Whisper::WHISPER_1);
$file = Audio::fromFile(dirname(__DIR__, 2).'/fixtures/audio.mp3');

$result = $platform->invoke($model, $file);
Expand Down
2 changes: 1 addition & 1 deletion examples/azure/embeddings.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
env('AZURE_OPENAI_KEY'),
http_client(),
);
$embeddings = new Embeddings();
$embeddings = new Embeddings(Embeddings::TEXT_3_SMALL);

$result = $platform->invoke($embeddings, <<<TEXT
Once upon a time, there was a country called Japan. It was a beautiful country with a lot of mountains and rivers.
Expand Down
2 changes: 1 addition & 1 deletion examples/cerebras/chat.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
Message::forSystem('You are a helpful assistant.'),
Message::ofUser('How is the weather in Tokyo today?'),
);
$result = $platform->invoke(new Model(), $messages);
$result = $platform->invoke(new Model(Model::LLAMA3_1_8B), $messages);

echo $result->getResult()->getContent().\PHP_EOL;
2 changes: 1 addition & 1 deletion examples/cerebras/stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
Message::ofUser('What are the top three destinations in France?'),
);

$result = $platform->invoke(new Model(), $messages, [
$result = $platform->invoke(new Model(Model::LLAMA3_1_8B), $messages, [
'stream' => true,
]);

Expand Down
2 changes: 1 addition & 1 deletion examples/gemini/embeddings.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
require_once dirname(__DIR__).'/bootstrap.php';

$platform = PlatformFactory::create(env('GEMINI_API_KEY'), http_client());
$embeddings = new Embeddings();
$embeddings = new Embeddings(Embeddings::GEMINI_EMBEDDING_EXP_03_07);

$result = $platform->invoke($embeddings, <<<TEXT
Once upon a time, there was a country called Japan. It was a beautiful country with a lot of mountains and rivers.
Expand Down
2 changes: 1 addition & 1 deletion examples/memory/mariadb.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

// create embeddings for documents as preparation of the chain memory
$platform = PlatformFactory::create(env('OPENAI_API_KEY'), http_client());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(Embeddings::TEXT_3_SMALL));
$indexer = new Indexer(new InMemoryLoader($documents), $vectorizer, $store, logger: logger());
$indexer->index($documents);

Expand Down
2 changes: 1 addition & 1 deletion examples/mistral/embeddings.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
require_once dirname(__DIR__).'/bootstrap.php';

$platform = PlatformFactory::create(env('MISTRAL_API_KEY'), http_client());
$model = new Embeddings();
$model = new Embeddings(Embeddings::MISTRAL_EMBED);

$result = $platform->invoke($model, <<<TEXT
In the middle of the 20th century, food scientists began to understand the importance of vitamins and minerals in
Expand Down
2 changes: 1 addition & 1 deletion examples/ollama/stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
require_once dirname(__DIR__).'/bootstrap.php';

$platform = PlatformFactory::create(env('OLLAMA_HOST_URL'), http_client());
$model = new Ollama();
$model = new Ollama(Ollama::LLAMA_3_2);

$messages = new MessageBag(
Message::forSystem('You are a helpful assistant.'),
Expand Down
2 changes: 1 addition & 1 deletion examples/ollama/structured-output-math.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
require_once dirname(__DIR__).'/bootstrap.php';

$platform = PlatformFactory::create(env('OLLAMA_HOST_URL'), http_client());
$model = new Ollama();
$model = new Ollama(Ollama::LLAMA_3_2);

$processor = new AgentProcessor();
$agent = new Agent($platform, $model, [$processor], [$processor], logger: logger());
Expand Down
2 changes: 1 addition & 1 deletion examples/ollama/toolcall.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
require_once dirname(__DIR__).'/bootstrap.php';

$platform = PlatformFactory::create(env('OLLAMA_HOST_URL'), http_client());
$model = new Ollama();
$model = new Ollama(Ollama::LLAMA_3_2);

$toolbox = new Toolbox([new Clock()], logger: logger());
$processor = new AgentProcessor($toolbox);
Expand Down
2 changes: 1 addition & 1 deletion examples/openai/audio-transcript.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
require_once dirname(__DIR__).'/bootstrap.php';

$platform = PlatformFactory::create(env('OPENAI_API_KEY'), http_client());
$model = new Whisper();
$model = new Whisper(Whisper::WHISPER_1);
$file = Audio::fromFile(dirname(__DIR__, 2).'/fixtures/audio.mp3');

$result = $platform->invoke($model, $file);
Expand Down
2 changes: 1 addition & 1 deletion examples/openai/embeddings.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
require_once dirname(__DIR__).'/bootstrap.php';

$platform = PlatformFactory::create(env('OPENAI_API_KEY'), http_client());
$embeddings = new Embeddings();
$embeddings = new Embeddings(Embeddings::TEXT_3_SMALL);

$result = $platform->invoke($embeddings, <<<TEXT
Once upon a time, there was a country called Japan. It was a beautiful country with a lot of mountains and rivers.
Expand Down
2 changes: 1 addition & 1 deletion examples/openai/image-output-dall-e-2.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
$platform = PlatformFactory::create(env('OPENAI_API_KEY'), http_client());

$result = $platform->invoke(
model: new DallE(), // Utilize Dall-E 2 version in default
model: new DallE(DallE::DALL_E_2),
input: 'A cartoon-style elephant with a long trunk and large ears.',
options: [
'response_format' => 'url', // Generate response as URL
Expand Down
2 changes: 1 addition & 1 deletion examples/rag/cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

// create embeddings for documents
$platform = PlatformFactory::create(env('OPENAI_API_KEY'), http_client());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(), logger());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(Embeddings::TEXT_3_SMALL), logger());
$indexer = new Indexer(new InMemoryLoader($documents), $vectorizer, $store, logger: logger());
$indexer->index($documents);

Expand Down
2 changes: 1 addition & 1 deletion examples/rag/chromadb.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

// create embeddings for documents
$platform = PlatformFactory::create(env('OPENAI_API_KEY'), http_client());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(), logger());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(Embeddings::TEXT_3_SMALL), logger());
$indexer = new Indexer(new InMemoryLoader($documents), $vectorizer, $store, logger: logger());
$indexer->index($documents);

Expand Down
2 changes: 1 addition & 1 deletion examples/rag/clickhouse.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

// create embeddings for documents
$platform = PlatformFactory::create(env('OPENAI_API_KEY'), http_client());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(), logger());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(Embeddings::TEXT_3_SMALL), logger());
$indexer = new Indexer(new InMemoryLoader($documents), $vectorizer, $store, logger: logger());
$indexer->index($documents);

Expand Down
2 changes: 1 addition & 1 deletion examples/rag/cloudflare.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

// create embeddings for documents (keep in mind that upserting vectors is asynchronous)
$platform = PlatformFactory::create(env('OPENAI_API_KEY'), http_client());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(), logger());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(Embeddings::TEXT_3_SMALL), logger());
$indexer = new Indexer(new InMemoryLoader($documents), $vectorizer, $store, logger: logger());
$indexer->index($documents);

Expand Down
2 changes: 1 addition & 1 deletion examples/rag/in-memory.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

// create embeddings for documents
$platform = PlatformFactory::create(env('OPENAI_API_KEY'), http_client());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(), logger());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(Embeddings::TEXT_3_SMALL), logger());
$indexer = new Indexer(new InMemoryLoader($documents), $vectorizer, $store, logger: logger());
$indexer->index($documents);

Expand Down
4 changes: 2 additions & 2 deletions examples/rag/mariadb-gemini.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@

// create embeddings for documents
$platform = PlatformFactory::create(env('GEMINI_API_KEY'), http_client());
$embeddings = new Embeddings(options: ['dimensions' => 768, 'task_type' => TaskType::SemanticSimilarity]);
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(), logger());
$embeddings = new Embeddings(Embeddings::GEMINI_EMBEDDING_EXP_03_07, ['dimensions' => 768, 'task_type' => TaskType::SemanticSimilarity]);
$vectorizer = new Vectorizer($platform, $embeddings, logger());
$indexer = new Indexer(new InMemoryLoader($documents), $vectorizer, $store, logger: logger());
$indexer->index($documents);

Expand Down
2 changes: 1 addition & 1 deletion examples/rag/mariadb-openai.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

// create embeddings for documents
$platform = PlatformFactory::create(env('OPENAI_API_KEY'), http_client());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(), logger());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(Embeddings::TEXT_3_SMALL), logger());
$indexer = new Indexer(new InMemoryLoader($documents), $vectorizer, $store, logger: logger());
$indexer->index($documents);

Expand Down
2 changes: 1 addition & 1 deletion examples/rag/meilisearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

// create embeddings for documents
$platform = PlatformFactory::create(env('OPENAI_API_KEY'), http_client());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(), logger());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(Embeddings::TEXT_3_SMALL), logger());
$indexer = new Indexer(new InMemoryLoader($documents), $vectorizer, $store, logger: logger());
$indexer->index($documents);

Expand Down
2 changes: 1 addition & 1 deletion examples/rag/milvus.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

// create embeddings for documents
$platform = PlatformFactory::create(env('OPENAI_API_KEY'), http_client());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(), logger());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(Embeddings::TEXT_3_SMALL), logger());
$indexer = new Indexer(new InMemoryLoader($documents), $vectorizer, $store, logger: logger());
$indexer->index($documents);

Expand Down
2 changes: 1 addition & 1 deletion examples/rag/mongodb.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

// create embeddings for documents
$platform = PlatformFactory::create(env('OPENAI_API_KEY'));
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(), logger());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(Embeddings::TEXT_3_SMALL), logger());
$indexer = new Indexer(new InMemoryLoader($documents), $vectorizer, $store, logger: logger());
$indexer->index($documents);

Expand Down
2 changes: 1 addition & 1 deletion examples/rag/neo4j.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

// create embeddings for documents
$platform = PlatformFactory::create($_SERVER['OPENAI_API_KEY']);
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(), logger());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(Embeddings::TEXT_3_SMALL), logger());
$indexer = new Indexer(new InMemoryLoader($documents), $vectorizer, $store, logger: logger());
$indexer->index($documents);

Expand Down
2 changes: 1 addition & 1 deletion examples/rag/pinecone.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

// create embeddings for documents
$platform = PlatformFactory::create(env('OPENAI_API_KEY'), http_client());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(), logger());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(Embeddings::TEXT_3_SMALL), logger());
$indexer = new Indexer(new InMemoryLoader($documents), $vectorizer, $store, logger: logger());
$indexer->index($documents);

Expand Down
2 changes: 1 addition & 1 deletion examples/rag/postgres.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

// create embeddings for documents
$platform = PlatformFactory::create(env('OPENAI_API_KEY'), http_client());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(), logger());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(Embeddings::TEXT_3_SMALL), logger());
$indexer = new Indexer(new InMemoryLoader($documents), $vectorizer, $store, logger: logger());
$indexer->index($documents);

Expand Down
2 changes: 1 addition & 1 deletion examples/rag/qdrant.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

// create embeddings for documents
$platform = PlatformFactory::create(env('OPENAI_API_KEY'), http_client());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(), logger());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(Embeddings::TEXT_3_SMALL), logger());
$indexer = new Indexer(new InMemoryLoader($documents), $vectorizer, $store, logger: logger());
$indexer->index($documents);

Expand Down
2 changes: 1 addition & 1 deletion examples/rag/surrealdb.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

// create embeddings for documents
$platform = PlatformFactory::create($_SERVER['OPENAI_API_KEY']);
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(), logger());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(Embeddings::TEXT_3_SMALL), logger());
$indexer = new Indexer(new InMemoryLoader($documents), $vectorizer, $store, logger: logger());
$indexer->index($documents);

Expand Down
2 changes: 1 addition & 1 deletion examples/rag/typesense.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

// create embeddings for documents
$platform = PlatformFactory::create(env('OPENAI_API_KEY'), http_client());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(), logger());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(Embeddings::TEXT_3_SMALL), logger());
$indexer = new Indexer(new InMemoryLoader($documents), $vectorizer, $store, logger: logger());
$indexer->index($documents);

Expand Down
2 changes: 1 addition & 1 deletion examples/rag/weaviate.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

// create embeddings for documents
$platform = PlatformFactory::create(env('OPENAI_API_KEY'), http_client());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(), logger());
$vectorizer = new Vectorizer($platform, $embeddings = new Embeddings(Embeddings::TEXT_3_SMALL), logger());
$indexer = new Indexer(new InMemoryLoader($documents), $vectorizer, $store, logger: logger());
$indexer->index($documents);

Expand Down
2 changes: 1 addition & 1 deletion examples/replicate/chat-llama.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
require_once dirname(__DIR__).'/bootstrap.php';

$platform = PlatformFactory::create(env('REPLICATE_API_KEY'), http_client());
$model = new Llama();
$model = new Llama(Llama::V3_1_405B_INSTRUCT);

$messages = new MessageBag(
Message::forSystem('You are a helpful assistant.'),
Expand Down
2 changes: 1 addition & 1 deletion examples/vertexai/embeddings.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
require_once __DIR__.'/bootstrap.php';

$platform = PlatformFactory::create(env('GOOGLE_CLOUD_LOCATION'), env('GOOGLE_CLOUD_PROJECT'), adc_aware_http_client());
$embeddings = new Model();
$embeddings = new Model(Model::GEMINI_EMBEDDING_001);

$result = $platform->invoke($embeddings, <<<TEXT
Once upon a time, there was a country called Japan. It was a beautiful country with a lot of mountains and rivers.
Expand Down
2 changes: 1 addition & 1 deletion examples/voyage/embeddings.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
require_once dirname(__DIR__).'/bootstrap.php';

$platform = PlatformFactory::create(env('VOYAGE_API_KEY'), http_client());
$embeddings = new Voyage();
$embeddings = new Voyage(Voyage::V3);

$result = $platform->invoke($embeddings, <<<TEXT
Once upon a time, there was a country called Japan. It was a beautiful country with a lot of mountains and rivers.
Expand Down
2 changes: 1 addition & 1 deletion examples/voyage/multiple-embeddings.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
require_once dirname(__DIR__).'/bootstrap.php';

$platform = PlatformFactory::create(env('VOYAGE_API_KEY'), http_client());
$embeddings = new Voyage();
$embeddings = new Voyage(Voyage::V3);

$text1 = 'Once upon a time, there was a country called Japan. It was a beautiful country with a lot of mountains and rivers.';
$text2 = 'The people of Japan were very kind and hardworking. They loved their country very much and took care of it.';
Expand Down
2 changes: 1 addition & 1 deletion src/platform/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ For example, to use the OpenAI provider, you would typically do something like t
$platform = PlatformFactory::create(env('OPENAI_API_KEY'));

// Embeddings Model
$embeddings = new Embeddings();
$embeddings = new Embeddings(Embeddings::TEXT_3_SMALL);

// Language Model in version gpt-4o-mini
$model = new Gpt(Gpt::GPT_4O_MINI);
Expand Down
2 changes: 1 addition & 1 deletion src/platform/src/Bridge/Cerebras/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ final class Model extends BaseModel
* @see https://inference-docs.cerebras.ai/api-reference/chat-completions for details like options
*/
public function __construct(
string $name = self::LLAMA3_1_8B,
string $name,
array $capabilities = self::CAPABILITIES,
array $options = [],
) {
Expand Down
2 changes: 1 addition & 1 deletion src/platform/src/Bridge/Gemini/Embeddings.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Embeddings extends Model
/**
* @param array{dimensions?: int, task_type?: TaskType|string} $options
*/
public function __construct(string $name = self::GEMINI_EMBEDDING_EXP_03_07, array $options = [])
public function __construct(string $name, array $options = [])
{
parent::__construct($name, [Capability::INPUT_MULTIPLE], $options);
}
Expand Down
2 changes: 1 addition & 1 deletion src/platform/src/Bridge/Gemini/Gemini.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Gemini extends Model
/**
* @param array<string, mixed> $options The default options for the model usage
*/
public function __construct(string $name = self::GEMINI_2_PRO, array $options = [])
public function __construct(string $name, array $options = [])
{
$capabilities = [
Capability::INPUT_MESSAGES,
Expand Down
2 changes: 1 addition & 1 deletion src/platform/src/Bridge/Meta/Llama.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Llama extends Model
/**
* @param array<string, mixed> $options
*/
public function __construct(string $name = self::V3_1_405B_INSTRUCT, array $options = [])
public function __construct(string $name, array $options = [])
{
$capabilities = [
Capability::INPUT_MESSAGES,
Expand Down
2 changes: 1 addition & 1 deletion src/platform/src/Bridge/Ollama/Ollama.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Ollama extends Model
/**
* @param array<string, mixed> $options
*/
public function __construct(string $name = self::LLAMA_3_2, array $options = [])
public function __construct(string $name, array $options = [])
{
$capabilities = [];

Expand Down
2 changes: 1 addition & 1 deletion src/platform/src/Bridge/OpenAi/DallE.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class DallE extends Model
public const DALL_E_3 = 'dall-e-3';

/** @param array<string, mixed> $options The default options for the model usage */
public function __construct(string $name = self::DALL_E_2, array $options = [])
public function __construct(string $name, array $options = [])
{
$capabilities = [
Capability::INPUT_TEXT,
Expand Down
2 changes: 1 addition & 1 deletion src/platform/src/Bridge/OpenAi/Embeddings.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Embeddings extends Model
/**
* @param array<string, mixed> $options
*/
public function __construct(string $name = self::TEXT_3_SMALL, array $options = [])
public function __construct(string $name, array $options = [])
{
parent::__construct($name, [], $options);
}
Expand Down
2 changes: 1 addition & 1 deletion src/platform/src/Bridge/OpenAi/Whisper.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Whisper extends Model
/**
* @param array<string, mixed> $options
*/
public function __construct(string $name = self::WHISPER_1, array $options = [])
public function __construct(string $name, array $options = [])
{
$capabilities = [
Capability::INPUT_AUDIO,
Expand Down
Loading
Loading