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

using cohere python 4.11.2: ``` response = co.tokenize( text=text, model='embed-multilingual-v2.0' ) print(response.tokens) ``` Error: ``` tokenize() got an unexpected keyword argument 'model' ```

Hey great job on the multi-lingual models. I've been trying the cohere trial api and I have a question about rate-limiting. The error says that the number of requests is...

https://github.com/cohere-ai/cohere-python/blob/5e9e872cd75ebea3c2091dd043b875b494f21535/cohere/client_async.py#L495C33-L495C38 Hello, the reranker (async client) does not have parameter return_documents. It is hard-coded to `False` in the code above.

Hey Cohere Team 👋 , I'm currently trying to implement async `Token Streaming` with Cohere (`cohere==4.33`). However, when running this code, I get some errors: ```python completion = co.chat( chat_history=_conversation,...

I'm not sure if this is the right place to ask this, but `generate` with `max_tokens=3` finshes with `finish_reason=COMPLETE` ``` $ curl --request POST \ --url https://api.cohere.ai/v1/generate \ --header 'accept:...

The Python SDK API reference is not building correctly on Read the Docs. Only headers load, all body text is absent. https://cohere-sdk.readthedocs.io/en/latest/cohere.html#api

It would be nice if the API could provide an endpoint where it could accept a batch request, like for example the `Co.Generate` could accept a list of prompts. It...

Hey. We want to release an SDK for C# and would like to know if you have an official Swagger/OpenAPI spec? I did not find this in the documentation and...