merefield
(Robert)
August 30, 2024, 2:42pm
923
Itâs working for me either via Serp API or Jina.ai.
Can you provide the bots âinner thoughtsâ from the PM please?
Inner Thoughts
[
{
"role": "assistant",
"content": "",
"tool_calls": [
{
"id": "call_mKY7pfG54xRduRKCz5xee9E0",
"type": "function",
"function": {
"name": "web_search",
"arguments": "{\"query\":\"list of English butterflies\"}"
}
}
]
},
{
"role": "tool",
"tool_call_id": "call_mKY7pfG54xRduRKCz5xee9E0",
"content": "A-Z of butterflies ¡ A. Adonis Blue ¡ B Black Hairstreak ¡ Brimstone ¡ Brown Argus ¡ Brown Hairstreak ¡ C Chalk Hill Blue ¡ Chequered Skipper ¡ Clouded Yellow ¡ D."
}
]
1 Like
Jagster
(Jakke Lehtonen)
August 30, 2024, 2:50pm
924
Should we do this using PM? We are now just polluting this topic.
But:
[
{
"role": "assistant",
"content": "",
"tool_calls": [
{
"id": "call_4xitHqRBJ8Wc1HI546r3Wj1U",
"type": "function",
"function": {
"name": "web_search",
"arguments": "{\"query\":\"International Dog Day date and history\"}"
}
}
]
},
{
"role": "tool",
"tool_call_id": "call_4xitHqRBJ8Wc1HI546r3Wj1U",
"content": "International Dog Day date and history: my search for this on the internet failed."
}
]
merefield
(Robert)
August 30, 2024, 2:51pm
925
We can. So that failure is interesting.
Is your account in good order with serp API? Do you have capacity left? Have you still got quota left?
Jagster
(Jakke Lehtonen)
August 30, 2024, 2:53pm
926
Yes and yes. My account shows that request is done, no errors, no nothing. Well, nothing I can see.
1 Like
merefield
(Robert)
August 30, 2024, 8:30pm
927
Improved Serp API web search
merefield:main
â merefield:fix_web_search_with_serpapi
opened 07:48PM - 30 Aug 24 UTC
2 Likes
ozkn
(Mathx)
September 5, 2024, 1:33pm
928
The problem was not old or new user. New users also had the error. Today I got errors again. The error image is as follows. There is also a warning about the characters.
Chatbot: There was a problem with Chat Completion: status: 400, message: Invalid âmessages[1].nameâ: string does not match pattern. Expected a string that matches the pattern â+$â.
merefield
(Robert)
September 5, 2024, 1:48pm
929
Suspect you are not using Open AI?
The model needs to conform to Open AI API standards that includes the name attribute (which has been around for ~ a year?)
If you are using a proxy and they claim to provide open AI standards they are not telling you the truth
The change was made here:
I made some code simplifications by making use of a feature that was added to the Open AI API. Let me know if you encounter any issues.
I decided it was time to call this 1.0.0
You could always fork the plugin and change the commit to just prior to this change but you will have to manage other improvements
1 Like
ozkn
(Mathx)
September 5, 2024, 2:02pm
930
I am using Azure. Could my settings be wrong?
merefield
(Robert)
September 5, 2024, 2:06pm
931
Sounds like you are using a very old model
Here is the current API
https://platform.openai.com/docs/api-reference/chat/create#chat-create-messages
I would make sure youâve deployed one of the latest models.
gpt-4o-mini definitely supports this.
ozkn
(Mathx)
September 5, 2024, 2:10pm
932
Should we not change the following separately for the API version?
1 Like
merefield
(Robert)
September 5, 2024, 2:11pm
933
Thatâs probably way too old :).
If you need more detailed help marketplace . I cannot support this level of detail for free :).
1 Like
ozkn
(Mathx)
September 5, 2024, 2:14pm
934
Thank you for your help @merefield
1 Like
merefield
(Robert)
September 5, 2024, 2:39pm
935
My closing remark on this: Try deploying a much newer version of the API from 2024 at least.
1 Like