Anthropic
Configuration
php
'anthropic' => [
'api_key' => env('ANTHROPIC_API_KEY', ''),
'version' => env('ANTHROPIC_API_VERSION', '2023-06-01'),
]
Considerations
- Message order matters. Anthropic is strict about the message order being:
UserMessage
AssistantMessage
UserMessage
Limitations
- Does not support the
SystemMessage
message type, we automatically convertSystemMessage
toUserMessage
. - Does not support
Image::fromURL