ailoy-node
Preparing search index...
LangModel
Class LangModel
Index
Constructors
constructor
Methods
infer
infer
Delta
download
new
Local
new
Stream
API
remove
Constructors
constructor
new
LangModel
()
:
LangModel
Returns
LangModel
Methods
infer
infer
(
messages
:
Messages
,
tools
?:
ToolDesc
[]
|
null
,
docs
?:
Document
[]
|
null
,
)
:
MessageDeltaOutput
Parameters
messages
:
Messages
Optional
tools
:
ToolDesc
[]
|
null
Optional
docs
:
Document
[]
|
null
Returns
MessageDeltaOutput
infer
Delta
inferDelta
(
messages
:
Messages
,
tools
?:
ToolDesc
[]
|
null
,
docs
?:
Document
[]
|
null
,
)
:
MessageDeltaOutputIterator
Parameters
messages
:
Messages
Optional
tools
:
ToolDesc
[]
|
null
Optional
docs
:
Document
[]
|
null
Returns
MessageDeltaOutputIterator
Static
download
download
(
modelName
:
string
,
config
?:
LocalLangModelConfig
|
null
)
:
Promise
<
void
>
Parameters
modelName
:
string
Optional
config
:
LocalLangModelConfig
|
null
Returns
Promise
<
void
>
Static
new
Local
newLocal
(
modelName
:
string
,
config
?:
LocalLangModelConfig
|
null
,
)
:
Promise
<
LangModel
>
Parameters
modelName
:
string
Optional
config
:
LocalLangModelConfig
|
null
Returns
Promise
<
LangModel
>
Static
new
Stream
API
newStreamAPI
(
spec
:
APISpecification
,
modelName
:
string
,
apiKey
:
string
,
)
:
Promise
<
LangModel
>
Parameters
spec
:
APISpecification
modelName
:
string
apiKey
:
string
Returns
Promise
<
LangModel
>
Static
remove
remove
(
modelName
:
string
)
:
Promise
<
void
>
Parameters
modelName
:
string
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
infer
infer
Delta
download
new
Local
new
Stream
API
remove
ailoy-node
Loading...