Files
KGStudio/public/config.json
T
Xiaohan-Tian 2cd976ff96 refactor: migrate agent system from XML tool calling to OpenAI SDK with native function calling
- Replace custom XML-based tool parsing (XMLToolExecutor) with OpenAI SDK's
  native tool_calls via `openai` npm package (dangerouslyAllowBrowser)
- Consolidate 4 LLM providers (OpenAI, Claude, Gemini, ClaudeOpenRouter)
  into a single OpenAI SDK-based LLMProvider compatible with any
  OpenAI-style API (OpenAI, OpenRouter, Ollama, vLLM)
- Move agentic tool execution loop from ChatBox into AgentCore
- Update Message type to support tool roles, tool_calls, and tool_call_id
- Update system prompt to remove XML formatting instructions (~45% smaller)
- Remove AttemptCompletionTool (replaced by stop_reason detection),
  ThinkTool, and ThinkingTool
- Polish tool descriptions for OpenAI function calling schema compliance
- Normalize base URLs by stripping /chat/completions suffix
2026-04-05 18:59:25 -07:00

80 lines
2.0 KiB
JSON

{
"general": {
"language": "en_us",
"llm_provider": "openai",
"persist_api_keys_non_localhost": false,
"openai": {
"api_key": "",
"flex": false,
"model": "gpt-5.2"
},
"gemini": {
"api_key": "",
"model": "gemini-2.5-flash"
},
"claude": {
"api_key": "",
"model": "claude-sonnet-4.5"
},
"claude_openrouter": {
"api_key": "",
"base_url": "https://openrouter.ai/api/v1",
"model": "anthropic/claude-sonnet-4.5"
},
"openai_compatible": {
"api_key": "",
"base_url": "",
"model": ""
},
"soundfont": {
"base_url": "https://cdn.jsdelivr.net/npm/soundfont-for-samplers/FluidR3_GM/"
}
},
"hotkeys": {
"main": {
"hold_to_create_region": "ctrl",
"play": "space",
"loop": "c",
"undo": "ctrl+z",
"redo": "ctrl+shift+z",
"select_all": "ctrl+a",
"copy": "ctrl+c",
"cut": "ctrl+x",
"paste": "ctrl+v",
"save": "ctrl+s"
},
"piano_roll": {
"switch": "tab",
"select": "q",
"pencil": "w",
"hold_to_create_note": "ctrl",
"snap_none": "1",
"snap_1_4": "2",
"snap_1_8": "3",
"snap_1_16": "4",
"qua_pos_1_4": "5",
"qua_pos_1_8": "6",
"qua_pos_1_16": "7",
"qua_len_1_4": "8",
"qua_len_1_8": "9",
"qua_len_1_16": "0"
}
},
"editor": {
"playhead_update_frequency": 10
},
"chatbox": {
"default_open": true
},
"audio": {
"enable_audio_capture_for_screen_sharing": false,
"lookahead_time": 0.05,
"playback_delay": 0.2
},
"templates": {
"custom_instructions": ""
},
"chord_guide": {
"chord_definition": ""
}
}