BaseCohere#
- class langchain_cohere.llms.BaseCohere[source]#
Bases:
Serializable
Base class for Cohere models.
- param base_url: str | None = None#
Override the default Cohere API URL.
- param cohere_api_key: SecretStr | None = None#
Cohere API key. If not provided, will be read from the environment variable.
- Constraints:
type = string
writeOnly = True
format = password
- param model: str | None = None#
Model name to use.
- param stop: List[str] | None = None#
- param streaming: bool = False#
Whether to stream the results.
- param temperature: float | None = None#
A non-negative float that tunes the degree of randomness in generation.
- param timeout_seconds: float | None = 300#
Timeout in seconds for the Cohere API request.
- param user_agent: str = 'langchain:partner'#
Identifier for the application making the request.