cohere-python icon indicating copy to clipboard operation
cohere-python copied to clipboard

Python Library for Accessing the Cohere API

Results 65 cohere-python issues
Sort by recently updated
recently updated
newest added

cohere==5.1.2 We're trying to run an embed job through the python client, and we're getting this error: `{'message': "model 'packed-embed-multilingual-light-v3.0-bulkjob' not found, make sure the correct model ID was used...

**SDK Version (required)** 5.9.1 **Describe the bug** When using the `"fast"` option for `citation_quality` in the RAG flow with the Cohere API, Unicode errors occur, but only for certain characters...

``` root@x1:~# cat website.py import os import cohere cohere_api_key = os.getenv('COHERE_API_KEY') co = cohere.Client(cohere_api_key) response = co.chat( model="command-r-plus", message="Hey I want to create !" ) print(response) root@x1:~# python3.11 website.py /usr/lib/python3/dist-packages/requests/__init__.py:109:...

Adds license to [PyPI project classifiers](https://pypi.org/classifiers/) The reason that it is very important for this information to be present is that in an enterprise environment, security tools like [Sonatype Nexus...

**Describe the improvement** Hello Cohere team, Currently, there is a lack of license information in the package metadata available on pypi. This can induce problems with multiple compliance tools since...

```py for event in stream: if event.event_type == "text-generation": print(event.text, end='') ``` Then, apparently, I will throw up an error. It worked when I made it look like the following,...

Currently, there is a custom decorator that checks to see if deprecated fields are used within function calls Specifically response_format is checked for schema ([see here](https://github.com/cohere-ai/cohere-python/blob/main/src/cohere/client.py#L163-L164)), this doesn't work if...

**SDK Version (required)** Provide the version you are using. To get the version, run the following python snippet ```python import cohere print(cohere.__version__) # 5.6.1 ``` **Describe the bug** A clear...

**Describe the bug** When deployed model Cohere-embed-v3-english, it was working to use the serverless endpoint to create embeddings but if use the SDK with code: cohere_client = cohere.ClientV2, returned "Resource...

**Describe the improvement** Support compatibility with `langchain-cohere` for rerank with AWS Bedrock by adding `rank_fields` parameter support to `cohere.BedrockClientV2.rerank `. Currently I have to do the following hack to get...