mirror of
				https://github.com/langgenius/dify.git
				synced 2025-10-31 10:53:02 +00:00 
			
		
		
		
	
		
			
	
	
		
			11 lines
		
	
	
		
			381 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
		
		
			
		
	
	
			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}`) | ||
|  | } |