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 `co.create_custom_model(model_name, dataset=dataset, model_type="CLASSIFY")`, can I also provide a validation dataset? Otherwise, it automatically splits my dataset into train/test. I can upload a validation dataset in the Cohere dashboard, but...

It seems `is_api_key_valid` returns `True` whenever anything (truthy) is passed in. Is this the intended behaviour? I would have guessed this function queries the server to check that the key...

Hello! Calling `co.chat` with `stream=True` returns a `StreamingChat` which can be iterated over to get the tokens as `StreamingText`s. The underlying `/chat` API endpoint terminates with a message that contains...

Add link to compressed embeddings docs when it is ready https://github.com/cohere-ai/cohere-python/pull/210#discussion_r1170307259

Hi - the example code used in the project README uses the parameter `model='large'`. This model seems to be unavailable, and throws a multiple retry error with an error code...

Line 13 should be: ` from cohere.error import CohereAPIError, CohereConnectionError, CohereError`

The Cohere client is [hosted on PyPI](https://pypi.org/project/cohere/) for example, but lacks links back to the [original Github repo](https://github.com/cohere-ai/cohere-python). Some examples of improvements: - Add project links to PyPI. For a...

Hi, just came across the function argument `prompt_vars` for `co.generate()`, which seems to be undocumented both on the web API and SDK docs (and currently not used in the code,...

Helps users know what the functions do without looking at the implementation -- look at GO SDK for examples of comments that could be adapted into docstrings

Hello, Will it be possible to provide an enum for different message errors types so we can check against ? or at least provide the message error type in the...