mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-09-08 15:52:37 +00:00

* added CohereGenerator with unit tests Signed-off-by: sunilkumardash9 <sunilkumardash9@gmail.com> * 1. added releasenote 2. removed commented files in test-cohere_generators 3. removed unused imports Signed-off-by: sunilkumardash9 <sunilkumardash9@gmail.com> * 1. move client creation to __init__ 2. remove dict casting of metadata in run Signed-off-by: sunilkumardash9 <sunilkumardash9@gmail.com> * few fixes Signed-off-by: sunilkumardash9 <sunilkumardash9@gmail.com> * add cohere to git workflows Signed-off-by: sunilkumardash9 <sunilkumardash9@gmail.com> * 1. CohereGenerator as top level import in generators 2. small change in doc string Signed-off-by: sunilkumardash9 <sunilkumardash9@gmail.com> * 1. corrected git workflow files for cohere import 2. changed api key env var from CO_API_KEY to COHERE_API_KEY Signed-off-by: sunilkumardash9 <sunilkumardash9@gmail.com> * added cohere in missed out workflow installs Signed-off-by: sunilkumardash9 <sunilkumardash9@gmail.com> * 1. Removed default_streaming_callback from cohere.py and added in test. 2. Added kwargs doc strings for CohereGenerator 3. removed type hints for metadata and replies 4. use COHERE_API_URL instead of hard coded URL. Signed-off-by: sunilkumardash9 <sunilkumardash9@gmail.com> * Update haystack/preview/components/generators/cohere/cohere.py Co-authored-by: Daria Fokina <daria.f93@gmail.com> * Update haystack/preview/components/generators/cohere/cohere.py Co-authored-by: Daria Fokina <daria.f93@gmail.com> * Update haystack/preview/components/generators/cohere/cohere.py Co-authored-by: Daria Fokina <daria.f93@gmail.com> * Update haystack/preview/components/generators/cohere/cohere.py Co-authored-by: Daria Fokina <daria.f93@gmail.com> * Update haystack/preview/components/generators/cohere/cohere.py Co-authored-by: Daria Fokina <daria.f93@gmail.com> * move out of folder * black * fix tests * feedback * black * remove api key from tests * read api key from env var if missing * typo * black * missing import --------- Signed-off-by: sunilkumardash9 <sunilkumardash9@gmail.com> Co-authored-by: sunilkumardash9 <sunilkumardash9@gmail.com> Co-authored-by: Daria Fokina <daria.f93@gmail.com>