Skip to content

Commit 3209059

Browse files
committed
Fix bug in settings
1 parent 1768796 commit 3209059

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/client/content/config/tabs/settings.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,10 @@ def spring_ai_obaas(src_dir, file_name, provider, ll_config, embed_config):
376376
# # Tools are enabled, use tools-default prompt
377377
# prompt_name = "optimizer_tools-default"
378378
## Legacy Feature:
379-
if "Vector Search" in state.client_settings["tools_enabled"]:
379+
if "Vector Search" in state.client_settings.get("tools_enabled", []):
380380
prompt_name = "optimizer_vs-no-tools-default"
381+
else:
382+
prompt_name = "optimizer_basic-default"
381383

382384
# Find the prompt in configs
383385
sys_prompt_obj = next((item for item in state.prompt_configs if item["name"] == prompt_name), None)

0 commit comments

Comments
 (0)