Mintplex-Labs / anything-llm

The all-in-one Desktop & Docker AI application with full RAG and AI Agent capabilities.
https://useanything.com
MIT License
17.1k stars 1.83k forks source link

[BUG]: small typo in web-scraping function #1510

Closed Propheticus closed 1 month ago

Propheticus commented 1 month ago

How are you running AnythingLLM?

Docker (local)

What happened?

The web-scraping function description says "url": while the examples below say "uri":

Function name: web-scraping
Function Description: Scrapes the content of a webpage or online resource from a provided URL.
Function parameters in JSON format:
{
    \"url\": {
        \"type\": \"string\",
        \"format\": \"uri\",
        \"description\": \"A complete web address URL including protocol. Assumes https if not provided.\"
    }
}
Query: \"What is useanything.com about?\"
JSON: {\"uri\":\"https://useanything.com\"}
Query: \"Scrape https://example.com\"
JSON: {\"uri\":\"https://example.com\"}

When a model follows the example using uri the call is invalid Invalid function tool call: Invalid argument schema match When a model follows the parameter definition using url (with an L) the call is valid Valid tool call found - running web-scraping.

timothycarambat commented 1 month ago

resolved by 961630f7d5051766fe76296cc9d3bdc24afbb93f