Interface: CohereInput
Base interface for language model parameters. A subclass of BaseLanguageModel should have a constructor that takes in a parameter that extends this interface.
Hierarchy
↳
CohereInput
Implemented by
Properties
apiKey
• Optional
apiKey: string
Defined in
langchain/src/llms/cohere.ts:15
cache
• Optional
cache: boolean
| BaseCache
<Generation
[]>
Inherited from
Defined in
langchain/src/llms/base.ts:19
callbackManager
• Optional
callbackManager: CallbackManager
Inherited from
Defined in
langchain/src/base_language/index.ts:22
concurrency
• Optional
concurrency: number
Deprecated
Use maxConcurrency
instead
Inherited from
Defined in
langchain/src/llms/base.ts:18
maxConcurrency
• Optional
maxConcurrency: number
The maximum number of concurrent calls that can be made.
Defaults to Infinity
, which means no limit.
Inherited from
Defined in
langchain/src/util/async_caller.ts:9
maxRetries
• Optional
maxRetries: number
The maximum number of retries that can be made for a single call, with an exponential backoff between each attempt. Defaults to 6.
Inherited from
Defined in
langchain/src/util/async_caller.ts:14
maxTokens
• Optional
maxTokens: number
Maximum number of tokens to generate in the completion.
Defined in
langchain/src/llms/cohere.ts:10
model
• Optional
model: string
Model to use
Defined in
langchain/src/llms/cohere.ts:13
temperature
• Optional
temperature: number
Sampling temperature to use
Defined in
langchain/src/llms/cohere.ts:5
verbose
• Optional
verbose: boolean
Inherited from
Defined in
langchain/src/base_language/index.ts:21