@conciergus/chat - v0.3.1
Preparing search index...
components
useFallbackChat
Function useFallbackChat
useFallbackChat
()
:
{
chatWithFallback
:
(
messages
:
any
[]
,
options
?:
{
chainName
?:
string
|
string
[]
;
temperature
?:
number
;
maxTokens
?:
number
;
stream
?:
boolean
;
}
,
)
=>
Promise
<
FallbackResult
<
any
>
>
;
isLoading
:
boolean
;
error
:
Error
;
performanceMetrics
:
ModelPerformanceMetrics
[]
;
}
Hook for AI SDK 5 chat integration with automatic fallback
Returns
{
chatWithFallback
:
(
messages
:
any
[]
,
options
?:
{
chainName
?:
string
|
string
[]
;
temperature
?:
number
;
maxTokens
?:
number
;
stream
?:
boolean
;
}
,
)
=>
Promise
<
FallbackResult
<
any
>
>
;
isLoading
:
boolean
;
error
:
Error
;
performanceMetrics
:
ModelPerformanceMetrics
[]
;
}
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
@conciergus/chat - v0.3.1
Loading...
Hook for AI SDK 5 chat integration with automatic fallback