mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-12 00:49:14 +08:00
♻️ refactor(hub): return empty string when no tools available
This commit is contained in:
parent
087f0ecfb1
commit
9af45a6689
@ -600,7 +600,7 @@ interface ToolInfo {
|
||||
|
||||
export function getHubModeSystemPrompt(tools: ToolInfo[] = []): string {
|
||||
if (tools.length === 0) {
|
||||
return HUB_MODE_SYSTEM_PROMPT_BASE
|
||||
return ''
|
||||
}
|
||||
|
||||
const existingNames = new Set<string>()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user