ailoy-web
Preparing search index...
_LocalModel
Class _LocalModel
Index
Constructors
constructor
Properties
backend
component
Type
id
quantization
Methods
default
System
Message
dispose
infer
init
is
Bor
is
Bos
is
Botc
is
Eor
is
Eos
is
Eotc
Constructors
constructor
new
_LocalModel
(
args
:
LocalModelArgs
)
:
_LocalModel
Parameters
args
:
LocalModelArgs
Returns
_LocalModel
Properties
backend
backend
:
"tvm"
Readonly
component
Type
componentType
:
string
id
id
:
LocalModelId
quantization
quantization
:
"q4f16_1"
Methods
default
System
Message
defaultSystemMessage
()
:
undefined
|
string
Returns
undefined
|
string
dispose
dispose
()
:
Promise
<
void
>
Returns
Promise
<
void
>
infer
infer
(
args
:
{
messages
:
Message
[]
;
reasoning
?:
boolean
;
tools
:
Tool
[]
}
,
)
:
Promise
<
AsyncIterable
<
MessageOutput
,
any
,
any
>
>
Parameters
args
:
{
messages
:
Message
[]
;
reasoning
?:
boolean
;
tools
:
Tool
[]
}
Returns
Promise
<
AsyncIterable
<
MessageOutput
,
any
,
any
>
>
init
init
(
args
:
{
genConfig
?:
GenerationConfig
;
runtime
:
Runtime
}
)
:
Promise
<
void
>
Parameters
args
:
{
genConfig
?:
GenerationConfig
;
runtime
:
Runtime
}
Returns
Promise
<
void
>
is
Bor
isBor
(
tok
:
string
)
:
boolean
Parameters
tok
:
string
Returns
boolean
is
Bos
isBos
(
tok
:
string
)
:
boolean
Parameters
tok
:
string
Returns
boolean
is
Botc
isBotc
(
tok
:
string
)
:
boolean
Parameters
tok
:
string
Returns
boolean
is
Eor
isEor
(
tok
:
string
)
:
boolean
Parameters
tok
:
string
Returns
boolean
is
Eos
isEos
(
tok
:
string
)
:
boolean
Parameters
tok
:
string
Returns
boolean
is
Eotc
isEotc
(
tok
:
string
)
:
boolean
Parameters
tok
:
string
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
backend
component
Type
id
quantization
Methods
default
System
Message
dispose
infer
init
is
Bor
is
Bos
is
Botc
is
Eor
is
Eos
is
Eotc
ailoy-web
Loading...