Find answers from the community

Updated 9 months ago

can we pass `stop_sequence` to Anthropic

can we pass stop_sequence to Anthropic LLM? TypeError: Messages.create() got an unexpected keyword argument 'stop_sequence'
L
e
8 comments
Does anthropic support a stop sequence in their api?
for tool using
Attachment
Screenshot_2024-03-22_at_2.58.07_PM.png
ah seems like additional_kwargs: { stop_sequences: ['</function_calls>'] } worked!
yes, that was going to be my suggestion πŸ‘
Add a reply
Sign up and join the conversation on Discord