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
Copy file name to clipboardExpand all lines: docs/providers/anthropic.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ We support Anthropic prompt caching on:
24
24
The API for enabling prompt caching is the same for all, enabled via the `withProviderOptions()` method. Where a UserMessage contains both text and an image or document, both will be cached.
25
25
26
26
```php
27
-
use Prism\Enums\Provider;
27
+
use Prism\Prism\Enums\Provider;
28
28
use Prism\Prism\Prism;
29
29
use Prism\Prism\Tool;
30
30
use Prism\Prism\ValueObjects\Messages\UserMessage;
@@ -49,7 +49,7 @@ Prism::text()
49
49
If you prefer, you can use the `AnthropicCacheType` Enum like so:
50
50
51
51
```php
52
-
use Prism\Enums\Provider;
52
+
use Prism\Prism\Enums\Provider;
53
53
use Prism\Prism\Providers\Anthropic\Enums\AnthropicCacheType;
54
54
use Prism\Prism\ValueObjects\Messages\UserMessage;
55
55
use Prism\Prism\ValueObjects\Messages\Support\Document;
@@ -68,7 +68,7 @@ Claude Sonnet 3.7 supports an optional extended thinking mode, where it will rea
68
68
Prism supports thinking mode for text and structured with the same API:
69
69
70
70
```php
71
-
use Prism\Enums\Provider;
71
+
use Prism\Prism\Enums\Provider;
72
72
use Prism\Prism\Prism;
73
73
74
74
Prism::text()
@@ -83,7 +83,7 @@ By default Prism will set the thinking budget to the value set in config, or whe
83
83
You can overide the config (or its default) using `withProviderOptions`:
84
84
85
85
```php
86
-
use Prism\Enums\Provider;
86
+
use Prism\Prism\Enums\Provider;
87
87
use Prism\Prism\Prism;
88
88
89
89
Prism::text()
@@ -110,7 +110,7 @@ You can access it via the additionalContent property on either the Response or t
Custom content documents are primarily for use with citations (see below), if you need citations to reference your own chunking strategy.
158
158
159
159
```php
160
-
use Prism\Enums\Provider;
160
+
use Prism\Prism\Enums\Provider;
161
161
use Prism\Prism\Prism;
162
162
use Prism\Prism\ValueObjects\Messages\UserMessage;
163
163
use Prism\Prism\ValueObjects\Messages\Support\Document;
@@ -186,7 +186,7 @@ Please note however that due to Anthropic not supporting "native" structured out
186
186
Anthropic require citations to be enabled on all documents in a request. To enable them, using the `withProviderOptions()` method when building your request:
187
187
188
188
```php
189
-
use Prism\Enums\Provider;
189
+
use Prism\Prism\Enums\Provider;
190
190
use Prism\Prism\Prism;
191
191
use Prism\Prism\ValueObjects\Messages\UserMessage;
192
192
use Prism\Prism\ValueObjects\Messages\Support\Document;
0 commit comments