You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add your DeepL API key to the configuration file or environment variables:
327
+
Anthropic offers an [API compatible with the OpenAI SDK](https://docs.anthropic.com/en/api/openai-sdk). To integrate Claude using this SDK, you simply need to update the `base_uri` to point to Anthropic's endpoint and use your Anthropic API key.
328
+
329
+
Here’s a sample configuration in PHP:
326
330
327
331
```php
328
332
return [
329
333
// ...
330
334
331
335
'services' => [
332
-
// ...
333
-
'deepl' => [
334
-
'key' => env('DEEPL_KEY'),
336
+
'openai' => [
337
+
'key' => env('ANTHROPIC_API_KEY'),
338
+
'base_uri' => 'https://api.anthropic.com/v1',
335
339
],
336
340
],
337
341
338
342
// ...
339
343
];
340
344
```
341
345
346
+
> 💡 **Note:** Ensure your `ANTHROPIC_API_KEY` is set in your environment variables.
347
+
342
348
### CLI Translation
343
349
344
350
Display all keys defined in the source locale (English) but not translated in the target (French):
0 commit comments