Interface: OpenAIInput
Input to OpenAI class.
Hierarchy
↳
OpenAIInput
Implemented by
Properties
frequencyPenalty
• frequencyPenalty: number
Penalizes repeated tokens according to frequency
Inherited from
Defined in
langchain/src/llms/openai-chat.ts:22
logitBias
• Optional
logitBias: Record
<string
, number
>
Dictionary used to adjust the probability of specific tokens being generated
Inherited from
Defined in
langchain/src/llms/openai-chat.ts:31
maxTokens
• Optional
maxTokens: number
Maximum number of tokens to generate in the completion. If not specified, defaults to the maximum number of tokens allowed by the model.
Defined in
langchain/src/llms/openai-chat.ts:66
modelKwargs
• Optional
modelKwargs: Kwargs
Holds any additional parameters that are valid to pass to openai.create
that are not explicitly specified on this class.
Defined in
langchain/src/llms/openai-chat.ts:52
modelName
• modelName: string
Model name to use
Defined in
langchain/src/llms/openai-chat.ts:43
n
• n: number
Number of chat completions to generate for each prompt
Inherited from
Defined in
langchain/src/llms/openai-chat.ts:28
prefixMessages
• Optional
prefixMessages: ChatCompletionRequestMessage
[]
ChatGPT messages to pass as a prefix to the prompt
Defined in
langchain/src/llms/openai-chat.ts:46
presencePenalty
• presencePenalty: number
Penalizes repeated tokens
Inherited from
Defined in
langchain/src/llms/openai-chat.ts:25
stop
• Optional
stop: string
[]
List of stop words to use when generating
Defined in
langchain/src/llms/openai-chat.ts:55
streaming
• streaming: boolean
Whether to stream the results or not
Inherited from
Defined in
langchain/src/llms/openai-chat.ts:34
temperature
• temperature: number
Sampling temperature to use, between 0 and 2, defaults to 1
Inherited from
Defined in
langchain/src/llms/openai-chat.ts:16
timeout
• Optional
timeout: number
Timeout to use when making requests to OpenAI.
Defined in
langchain/src/llms/openai-chat.ts:60
topP
• topP: number
Total probability mass of tokens to consider at each step, between 0 and 1, defaults to 1
Inherited from
Defined in
langchain/src/llms/openai-chat.ts:19