OCI Cohere Command Vision fails: CohereChatResponseV2 object has no attribute text

This had two causes, both fixed. First, the Cohere V2 response structure is different: the text lives at .message.content[].text, not .text, so the parser needed updating. Second, vision models require the COHEREV2 API format even when you send text-only messages, and the format detection was not doing that. Both fixes are in, tested against cohere.command-a-vision and cohere.command-r-08-2024, so upgrade to the latest langchain-oci and the OCR flow works. Source: https://github.com/oracle/langchain-oracle/issues/121

Source: https://github.com/oracle/langchain-oracle/issues/121