From 0410fbf4bc7313824ac23abfd1eecdddb1d36615 Mon Sep 17 00:00:00 2001 From: abnerhexu <20591243+abnerhexu@users.noreply.github.com> Date: Tue, 20 Jan 2026 15:55:11 +0800 Subject: [PATCH] modified: llm_settings.json modified: template/agent_prompt.py modified: template/parsing_error.py --- llm_settings.json | 18 +++++++++++++++++- template/agent_prompt.py | 3 +-- template/parsing_error.py | 1 + 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/llm_settings.json b/llm_settings.json index dbe98d6..0d351e0 100644 --- a/llm_settings.json +++ b/llm_settings.json @@ -1,5 +1,5 @@ { - "selected_provider": "Kimi", + "selected_provider": "TSSC", "provider_configs": { "Ollama": { "type": "ollama", @@ -49,6 +49,22 @@ "allow_endpoint_edit": true, "allow_api_toggle": true, "system_prompt": "You are a very friendly drone control agent. No matter what language I use to give you instructions, please call the tools to perform the task and then reply in English." + }, + "TSSC": { + "type": "openai-compatible", + "base_url": "https://ollama.nudt.space/v1", + "models_endpoint": "/v1/models", + "chat_endpoint": "/v1/chat/completions", + "requires_api_key": true, + "api_key": "sk-shahe-547d2f923494c66c3b0134c3e52bbe12", + "encoding": "utf-8", + "default_model": "gemma3:27b", + "default_models": [ + "gemma3:27b" + ], + "allow_endpoint_edit": true, + "allow_api_toggle": true, + "system_prompt": "You are a very friendly drone control agent. No matter what language I use to give you instructions, please call the tools to perform the task and then reply in English." } } } \ No newline at end of file diff --git a/template/agent_prompt.py b/template/agent_prompt.py index c9c8f93..e6fc4a6 100644 --- a/template/agent_prompt.py +++ b/template/agent_prompt.py @@ -85,8 +85,7 @@ Tips for you to finish task in the most efficient way: 4. Getting entities nearby do not always effective. You have only limited sensor range. Using /targets API to get targets and /obstacles API to get obstacles is more effective. 5. If battery is below 30, find the nerest waypoint, go there and land, then charge to 100. 6. Reaching to a higher latitude can help you see targets, but do not exceed the drone's limit. -7. We put your answer to langchain, so if you want to return {{ or }}, return double of the characters. -8. Cannot move from current status: DroneStatus.IDLE means you need to take off first then move. +7. Cannot move from current status: DroneStatus.IDLE means you need to take off first then move. Begin! diff --git a/template/parsing_error.py b/template/parsing_error.py index 48643d0..ae6536a 100644 --- a/template/parsing_error.py +++ b/template/parsing_error.py @@ -14,5 +14,6 @@ REMINDER - Action Input must be valid JSON: - For one parameter: {{"drone_id": "drone-001"}} - For multiple parameters: {{"drone_id": "drone-001", "altitude": 15.0}} - Numbers WITHOUT quotes, strings WITH quotes +- We put your answer to langchain, so if you want to return {{ or }}, return double of the characters. Please try again with proper JSON format."""