ITADN

Streaming web search results throws an error

#941Closedgadenbuie 创建于 2026-03-16
G
gadenbuiecommented
## Claude ``` r library(ellmer) #> ellmer * 0.4.0.9000 2026-03-09 [1] Github (tidyverse/ellmer@93d5b30) client1 = ellmer::chat_claude(model = 'claude-haiku-4-5-20251001') client1$register_tool(claude_tool_web_search()) client1$chat( "What was J.J. Allaire's first company? Search the web to be certain" ) #> ! Unknown delta type "citations_delta". #> J.J. Allaire founded Allaire Corporation in Minneapolis, Minnesota in 1995, #> which was his first company. #> ! Unknown delta type "citations_delta". #> In 1995, Allaire created ColdFusion, the flagship #> product of the company. #> ! Unknown delta type "citations_delta". #> Allaire Corporation commenced operations in May 1995, #> had its initial public offering on NASDAQ in January 1999, and was acquired by #> rival Macromedia in early #> Error in `content$input$query`: #> ! $ operator is invalid for atomic vectors ``` Echoing the tool result seems to be causing the issues. ```r client1$chat( "What was J.J. Allaire's first company? Search the web to be certain", echo = "none" ) #> J.J. Allaire's first company was Allaire Corporation, which he founded in 1995. #> He founded it with his brother Jeremy Allaire and a group of college friends, #> using $18,000 of J.J.'s savings. ``` ## OpenAI ``` r library(ellmer) client1 = chat_openai(model = 'gpt-5-nano') client1$register_tool(openai_tool_web_search()) client1$chat( "What was J.J. Allaire's first company? Search the web to be certain" ) #> J.J. Allaire’s first company was Allaire Corporation, which he co-founded with #> his brother Jeremy Allaire in 1995 in Minneapolis, Minnesota. The pair launched #> the company the same year ColdFusion was created. #> ([en.wikipedia.org](https://en.wikipedia.org/wiki/Joseph_J._Allaire)) #> #> For context, this is distinct from the 19th-century Allaire ventures founded by #> James P. Allaire. (That James Allaire is a different person.) #> Error: #> ! <ellmer::ContentToolRequestSearch> object properties are invalid: #> - @query must be <character>, not <NULL> ``` ```r client1$chat( "What was J.J. Allaire's first company? Search the web to be certain", echo = "none" ) #> Short answer: J. J. Allaire’s first company was Allaire Corporation. #> #> - Allaire Corporation was founded in early 1995 by Joseph J. Allaire (J.J.) in #> Minneapolis, Minnesota. It later moved to Cambridge, Massachusetts in 1996 with #> his brother Jeremy Allaire joining as a co-founder. #> ([twst.com](https://www.twst.com/interview/jeremy-allaire-allaire-corporation-allr?utm_source=openai)) #> - The company went public in 1999 and was acquired by Macromedia in 2001. #> ([en.wikipedia.org](https://en.wikipedia.org/wiki/Joseph_J._Allaire?utm_source=openai)) #> #> If you’d like, I can pull more detailed sources or a concise timeline. ``` ## Google Gemini This does not seem to affect Google Gemini: ``` r library(ellmer) client1 = chat_google_gemini(model = "gemini-2.5-flash") client1$register_tool(google_tool_web_search()) client1$chat( "What was J.J. Allaire's first company? Search the web to be certain" ) #> J.J. Allaire's first company was Allaire Corporation, which he co-founded with #> his brother Jeremy Allaire in May 1995 in Minneapolis, Minnesota. The company #> focused on creating tools for web development, and J.J. Allaire was #> instrumental in developing ColdFusion, a pioneering web application development #> platform. Allaire Corporation went public in 1999 and was later acquired by #> Macromedia in 2001. ```
关闭于 2026-04-03 1 条评论