OSM: override doityourself to hardware

This commit is contained in:
projectmoon 2024-09-19 21:32:04 +00:00
parent 3f3219da43
commit 155d480cd7
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,8 @@
# OpenStreetMap Tool
**0.6.2:*
- Override `doityourself` store to `hardware`.
**0.6.1:**
- Small adjustment to single location result instructions.

7
osm.py
View File

@ -2,7 +2,7 @@
title: OpenStreetMap Tool
author: projectmoon
author_url: https://git.agnos.is/projectmoon/open-webui-filters
version: 0.6.1
version: 0.6.2
license: AGPL-3.0+
required_open_webui_version: 0.3.21
"""
@ -74,7 +74,8 @@ def detailed_instructions(tag_type_str: str) -> str:
f"\n\n{NO_CONFUSION}\n\n"
"Remember that the CLOSEST result is first, and you should use "
"that result first.\n\n"
"The results (if present) are below, in Markdown format."
"The results (if present) are below, in Markdown format.\n\n"
"**ALWAYS SAY THE CLOSEST RESULT FIRST!**"
)
def simple_instructions(tag_type_str: str) -> str:
@ -193,7 +194,7 @@ def friendly_shop_name(shop_type: str) -> str:
Make certain shop types more friendly for LLM interpretation.
"""
if shop_type == "doityourself":
return "home_improvement_center"
return "hardware"
else:
return shop_type