mirror of
				https://github.com/open-webui/pipelines
				synced 2025-06-26 18:15:58 +00:00 
			
		
		
		
	refac: improved fc prompt
This commit is contained in:
		
							parent
							
								
									a4abc1b01f
								
							
						
					
					
						commit
						be5f596d2a
					
				@ -149,7 +149,7 @@ And answer according to the language of the user's question.""",
 | 
				
			|||||||
        fc_system_prompt = (
 | 
					        fc_system_prompt = (
 | 
				
			||||||
            f"Functions: {json.dumps(function_specs, indent=2)}"
 | 
					            f"Functions: {json.dumps(function_specs, indent=2)}"
 | 
				
			||||||
            + """
 | 
					            + """
 | 
				
			||||||
If a function doesn't match the query, return an empty string. Else, pick a function, fill in the parameters from the function's schema, and return it in the format { "name": \"functionName\", "parameters": { "key": "value" } }. Only pick a function if the user asks."
 | 
					If a function doesn't match the query, return an empty string. Else, pick a function, fill in the parameters from the function's schema, and return it in the format { "name": \"functionName\", "parameters": { "key": "value" } }. Only pick a function if the user asks.  Only return the object. Do not return any other text."
 | 
				
			||||||
"""
 | 
					"""
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user