Skip to content

Commit 61b8485

Browse files
committed
docs: fix example to use asText() instead of generate()
1 parent 67ce348 commit 61b8485

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/providers/anthropic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ $response = Prism::text()
7575
'toolResultCacheType' => 'ephemeral'
7676
])
7777
->withPrompt('Check the weather in New York, London, Tokyo, Paris, and Sydney')
78-
->generate();
78+
->asText();
7979
```
8080

8181
When multiple tool results are returned, Prism automatically applies caching to only the last result, which caches all preceding results as well. This avoids Anthropic's 4-cache-breakpoint limitation.

0 commit comments

Comments
 (0)