@zimtsui/brainswitch
Preparing search index...
Adaptor
Class Adaptor
Index
Properties
config
Methods
get
Throttle
make
Engine
create
Properties
config
config
:
{
brainswitch
:
{
endpoints
:
{
[
key
:
string
]:
{
apiKey
:
string
;
apiType
:
|
"openai-chatcompletions"
|
"openai-responses"
|
"google"
|
"qwen"
|
"openrouter-monolith"
|
"openrouter-stream"
|
"huggingface-cerebras-qwen3-thinking"
;
baseUrl
:
string
;
cachedPrice
?:
number
;
customOptions
?:
{
[
key
:
string
]:
any
}
;
inputPrice
?:
number
;
model
:
string
;
name
:
string
;
outputPrice
?:
number
;
proxy
?:
string
;
rpm
?:
number
;
timeout
?:
number
;
tpm
?:
number
;
}
;
}
;
}
;
}
Methods
get
Throttle
getThrottle
(
endpointId
:
string
)
:
Throttle
Parameters
endpointId
:
string
Returns
Throttle
make
Engine
makeEngine
<
fdm
extends
Function
.
Declaration
.
Map
=
{}
>
(
endpoint
:
string
,
functionDeclarationMap
:
fdm
,
functionCallMode
?:
Function
.
ToolChoice
<
fdm
>
,
)
:
Engine
<
Function
.
Declaration
.
From
<
fdm
,
Extract
<
keyof
fdm
,
string
>
>
>
Type Parameters
fdm
extends
Function
.
Declaration
.
Map
=
{}
Parameters
endpoint
:
string
functionDeclarationMap
:
fdm
Optional
functionCallMode
:
Function
.
ToolChoice
<
fdm
>
Returns
Engine
<
Function
.
Declaration
.
From
<
fdm
,
Extract
<
keyof
fdm
,
string
>
>
>
Static
create
create
(
config
:
{
brainswitch
:
{
endpoints
:
{
[
key
:
string
]:
{
apiKey
:
string
;
apiType
:
|
"openai-chatcompletions"
|
"openai-responses"
|
"google"
|
"qwen"
|
"openrouter-monolith"
|
"openrouter-stream"
|
"huggingface-cerebras-qwen3-thinking"
;
baseUrl
:
string
;
cachedPrice
?:
number
;
customOptions
?:
{
[
key
:
string
]:
any
}
;
inputPrice
?:
number
;
model
:
string
;
name
:
string
;
outputPrice
?:
number
;
proxy
?:
string
;
rpm
?:
number
;
timeout
?:
number
;
tpm
?:
number
;
}
;
}
;
}
;
}
,
)
:
Adaptor
Parameters
config
:
{
brainswitch
:
{
endpoints
:
{
[
key
:
string
]:
{
apiKey
:
string
;
apiType
:
|
"openai-chatcompletions"
|
"openai-responses"
|
"google"
|
"qwen"
|
"openrouter-monolith"
|
"openrouter-stream"
|
"huggingface-cerebras-qwen3-thinking"
;
baseUrl
:
string
;
cachedPrice
?:
number
;
customOptions
?:
{
[
key
:
string
]:
any
}
;
inputPrice
?:
number
;
model
:
string
;
name
:
string
;
outputPrice
?:
number
;
proxy
?:
string
;
rpm
?:
number
;
timeout
?:
number
;
tpm
?:
number
;
}
;
}
;
}
;
}
Returns
Adaptor
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
config
Methods
get
Throttle
make
Engine
create
@zimtsui/brainswitch
Loading...