wwf
8 天以前 938c3e5a587ce950a94964ea509b9e7f8834dfae
1
2
3
4
5
6
7
8
9
10
import type { StrategyPluginDetail } from '@/app/components/plugins/types'
import { get } from './base'
 
export const fetchStrategyList = () => {
  return get<StrategyPluginDetail[]>('/workspaces/current/agent-providers')
}
 
export const fetchStrategyDetail = (agentProvider: string) => {
  return get<StrategyPluginDetail>(`/workspaces/current/agent-provider/${agentProvider}`)
}