langchain_community.llms.cohere
.BaseCohere¶
- class langchain_community.llms.cohere.BaseCohere[source]¶
Bases:
Serializable
Deprecated since version 0.0.30: Use
langchain_cohere.BaseCohere
instead.Base class for Cohere models.
- param cohere_api_key: Optional[SecretStr] = None¶
Cohere API key. If not provided, will be read from the environment variable.
- Constraints
type = string
writeOnly = True
format = password
- param model: Optional[str] = None¶
Model name to use.
- param stop: Optional[List[str]] = None¶
- param streaming: bool = False¶
Whether to stream the results.
- param temperature: float = 0.75¶
A non-negative float that tunes the degree of randomness in generation.
- param user_agent: str = 'langchain'¶
Identifier for the application making the request.