You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gcgj-dify-1.7.0/web/service/strategy.ts

11 lines
381 B
TypeScript

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}`)
}