mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
Update webview-ui/src/components/ui/hooks/useRequestyKeyInfo.ts
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
This commit is contained in:
parent
f0a5bd68da
commit
e74ca6fbd7
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ async function getRequestyKeyInfo(baseUrl?: string, apiKey?: string) {
|
|||
type UseRequestyKeyInfoOptions = Omit<UseQueryOptions<RequestyKeyInfo | null>, "queryKey" | "queryFn">
|
||||
export const useRequestyKeyInfo = (baseUrl?: string, apiKey?: string, options?: UseRequestyKeyInfoOptions) => {
|
||||
return useQuery<RequestyKeyInfo | null>({
|
||||
queryKey: ["requesty-key-info", apiKey],
|
||||
queryKey: ["requesty-key-info", baseUrl, apiKey],
|
||||
queryFn: () => getRequestyKeyInfo(baseUrl, apiKey),
|
||||
staleTime: 30 * 1000, // 30 seconds
|
||||
enabled: !!apiKey,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue