DSPy: The framework for programming—not prompting—language models
Python
Set `command-r` to default Cohere LM, add to supported LMs
Connor Shorten85c8699db41d
diff --git a/dsp/modules/cohere.py b/dsp/modules/cohere.pyindex a71cfd5c2..e88c6d5c7 100644--- a/dsp/modules/cohere.py+++ b/dsp/modules/cohere.py@@ -37,7 +37,7 @@ class Cohere(LM):def __init__(self,- model: str = "command-nightly",+ model: str = "command-r",api_key: Optional[str] = None,stop_sequences: list[str] = [],**kwargs,@@ -47,7 +47,7 @@ class Cohere(LM):----------model : strWhich pre-trained model from Cohere to use?- Choices are [`command`, `command-nightly`, `command-light`, `command-light-nightly`]+ Choices are [`command-r`, `command`, `command-nightly`, `command-light`, `command-light-nightly`]api_key : strThe API key for Cohere.It can be obtained from https://dashboard.cohere.ai/register.