Skip to content

Commit 2c703eb

Browse files
committed
Fix Mistral examples env vars
1 parent dbc1abf commit 2c703eb

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

examples/mistral/chat.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
(new Dotenv())->loadEnv(dirname(__DIR__).'/.env');
2121

2222
if (!isset($_SERVER['MISTRAL_API_KEY'])) {
23-
echo 'Please set the REPLICATE_API_KEY environment variable.'.\PHP_EOL;
23+
echo 'Please set the MISTRAL_API_KEY environment variable.'.\PHP_EOL;
2424
exit(1);
2525
}
2626

examples/mistral/image.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
require_once dirname(__DIR__).'/vendor/autoload.php';
2121
(new Dotenv())->loadEnv(dirname(__DIR__).'/.env');
2222

23-
if (!isset($_SERVER['OPENAI_API_KEY'])) {
24-
echo 'Please set the OPENAI_API_KEY environment variable.'.\PHP_EOL;
23+
if (!isset($_SERVER['MISTRAL_API_KEY'])) {
24+
echo 'Please set the MISTRAL_API_KEY environment variable.'.\PHP_EOL;
2525
exit(1);
2626
}
2727

examples/mistral/toolcall-stream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
(new Dotenv())->loadEnv(dirname(__DIR__).'/.env');
2525

2626
if (!isset($_SERVER['MISTRAL_API_KEY'])) {
27-
echo 'Please set the REPLICATE_API_KEY environment variable.'.\PHP_EOL;
27+
echo 'Please set the MISTRAL_API_KEY environment variable.'.\PHP_EOL;
2828
exit(1);
2929
}
3030

examples/mistral/toolcall.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
(new Dotenv())->loadEnv(dirname(__DIR__).'/.env');
2424

2525
if (!isset($_SERVER['MISTRAL_API_KEY'])) {
26-
echo 'Please set the REPLICATE_API_KEY environment variable.'.\PHP_EOL;
26+
echo 'Please set the MISTRAL_API_KEY environment variable.'.\PHP_EOL;
2727
exit(1);
2828
}
2929

0 commit comments

Comments
 (0)