mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
feat(servers): run Manager automation on linked servers
This commit is contained in:
1 parent
c591c15743
commit
a9bdb8358f
131 files changed
+6568
-949
No files matched your search
@@ -1,8 +1,8 @@
|
||||
import { useProviders } from '@/hooks/useProviders'
|
||||
import type { ModelInfo } from '@opencode-manager/shared/opencode'
|
||||
|
||||
export function useScheduleModels(enabled: boolean, directory?: string) {
|
||||
const providersQuery = useProviders(directory, { enabled })
|
||||
export function useScheduleModels(enabled: boolean, directory?: string, serverId?: string) {
|
||||
const providersQuery = useProviders(directory, { enabled, serverId })
|
||||
const availableModels: ModelInfo[] | null =
|
||||
providersQuery.isSuccess && !providersQuery.isPlaceholderData
|
||||
? providersQuery.data?.models ?? []
|
||||
|
||||
Reference in new issue
Block a user