10000 fix: Web search with quotation marks causes 400 error. (#210) by ssnailed · Pull Request #211 · sigoden/llm-functions · GitHub
[go: up one dir, main page]

Skip to content

Conversation

ssnailed
Copy link
@ssnailed ssnailed commented Sep 8, 2025

This PR is a reimplementation of the web_search_perplexity and web_search_tavily tools using jq to generate the json body POSTed by curl.

Since jq is already a requirement of this script this is an elegant solution.

This was tested with claude sonnet 4:

temp) search this: test "test"                                                                                                                                                                                                                                0
I'll search for 'test "test"' using web search to find the most relevant results.
Call web_search {"query":"test \"test\""}
The search for 'test "test"' returned a general definition. The term "test" refers to a means of evaluating or examining something. It can be used in various contexts such as:

- **Assessment**: Educational tests or evaluations
- **Experiment**: Scientific tests or trials
- **Software testing**: Quality assurance and debugging processes
- **Speed tests**: Performance measurements
- **General evaluation**: Any form of examination or trial

Is there a specific type of test or context you're looking for more information about? I can search for more specific details if you let me know what particular aspect of testing interests you.

temp) .info
model                   claude:claude-sonnet-4-20250514
temperature             null
top_p                   null
use_tools               web
max_output_tokens       8192 (current model)
save_session            null
compress_threshold      4000
rag_reranker_model      jina:jina-reranker-v2-base-multilingual
rag_top_k               5
dry_run                 false
function_calling        true
stream                  true
save                    false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0