From a2269695e4b2b6506734978e0bf8985360f3db11 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Mon, 24 Feb 2025 13:02:18 -0300 Subject: [PATCH] Update pydantic_ai_slim/pydantic_ai/models/cohere.py Co-authored-by: David Montague <35119617+dmontagu@users.noreply.github.com> --- pydantic_ai_slim/pydantic_ai/models/cohere.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydantic_ai_slim/pydantic_ai/models/cohere.py b/pydantic_ai_slim/pydantic_ai/models/cohere.py index f7b6e89a..c75109bc 100644 --- a/pydantic_ai_slim/pydantic_ai/models/cohere.py +++ b/pydantic_ai_slim/pydantic_ai/models/cohere.py @@ -245,7 +245,7 @@ def _map_user_message(cls, message: ModelRequest) -> Iterable[ChatMessageV2]: if isinstance(part.content, str): yield UserChatMessageV2(role='user', content=part.content) else: - raise RuntimeError('Only string as user prompt is supported for Cohere.') + raise RuntimeError('Cohere does not yet support multi-modal inputs.') elif isinstance(part, ToolReturnPart): yield ToolChatMessageV2( role='tool',