You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that all of the AI ask endpoints descriptions on this page show the body as only requiring a query parameter. However, if you go to run a request via the "Test it" button on that page, the editor loads with the following request body prepopulated:
{
"query": "",
"previousQueries": [
null
]
}
If you fill in your query and run it as-is, without editing the contents of the previousQueries array, you'll get the following 422 error response:
Editing the body to make previousQueries be an empty array, or deleting previousQueries entirely causes the request to succeed. Given that previousQueries is deprecated and appears to no longer be functional, I'd think it should be removed from the "Test it" tool.
The text was updated successfully, but these errors were encountered:
benjamincburns
changed the title
"Test it" tool for AI ask/search is prepopulated with erroneous request body
"Test it" tool for AI ask is prepopulated with erroneous request body
Aug 19, 2024
It appears that all of the AI ask endpoints descriptions on this page show the body as only requiring a
query
parameter. However, if you go to run a request via the "Test it" button on that page, the editor loads with the following request body prepopulated:If you fill in your query and run it as-is, without editing the contents of the
previousQueries
array, you'll get the following 422 error response:Editing the body to make
previousQueries
be an empty array, or deletingpreviousQueries
entirely causes the request to succeed. Given thatpreviousQueries
is deprecated and appears to no longer be functional, I'd think it should be removed from the "Test it" tool.The text was updated successfully, but these errors were encountered: