langchain.js
Preparing search index...
@langchain/community
chat_models/deepinfra
ChatDeepInfra
Class ChatDeepInfra
Hierarchy (
View Summary
)
BaseDynamicToolInput
<
DeepInfraCallOptions
>
ChatDeepInfra
Implements
ChatDeepInfraParams
Index
Constructors
constructor
Properties
api
Key?
api
Url
max
Tokens?
model
temperature?
Accessors
call
Keys
Methods
_
generate
_
llm
Type
bind
Tools
completion
With
Retry
identifying
Params
invocation
Params
lc_
name
Constructors
constructor
new
ChatDeepInfra
(
fields
?:
any
)
:
ChatDeepInfra
Parameters
fields
:
any
= {}
Returns
ChatDeepInfra
Properties
Optional
api
Key
apiKey
?:
string
api
Url
apiUrl
:
string
Optional
max
Tokens
maxTokens
?:
number
model
model
:
string
Optional
temperature
temperature
?:
number
Accessors
call
Keys
get
callKeys
()
:
string
[]
Returns
string
[]
Methods
_
generate
_generate
(
messages
:
BaseMessage
[]
,
options
?:
unknown
)
:
Promise
<
ChatResult
>
Parameters
messages
:
BaseMessage
[]
Optional
options
:
unknown
Returns
Promise
<
ChatResult
>
_
llm
Type
_llmType
()
:
string
Returns
string
bind
Tools
bindTools
(
tools
:
BindToolsInput
[]
,
kwargs
?:
Partial
<
DeepInfraCallOptions
>
,
)
:
Runnable
<
BaseLanguageModelInput
,
AIMessageChunk
,
DeepInfraCallOptions
>
Parameters
tools
:
BindToolsInput
[]
Optional
kwargs
:
Partial
<
DeepInfraCallOptions
>
Returns
Runnable
<
BaseLanguageModelInput
,
AIMessageChunk
,
DeepInfraCallOptions
>
completion
With
Retry
completionWithRetry
(
request
:
ChatCompletionRequest
,
stream
:
boolean
,
signal
?:
AbortSignal
,
)
:
Promise
<
ChatCompletionResponse
>
Parameters
request
:
ChatCompletionRequest
stream
:
boolean
Optional
signal
:
AbortSignal
Returns
Promise
<
ChatCompletionResponse
>
identifying
Params
identifyingParams
()
:
Omit
<
ChatCompletionRequest
,
"messages"
>
Returns
Omit
<
ChatCompletionRequest
,
"messages"
>
invocation
Params
invocationParams
(
options
?:
unknown
)
:
Omit
<
ChatCompletionRequest
,
"messages"
>
Parameters
Optional
options
:
unknown
Returns
Omit
<
ChatCompletionRequest
,
"messages"
>
Static
lc_
name
lc_name
()
:
string
Returns
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
api
Key
api
Url
max
Tokens
model
temperature
Accessors
call
Keys
Methods
_
generate
_
llm
Type
bind
Tools
completion
With
Retry
identifying
Params
invocation
Params
lc_
name
langchain.js
Loading...