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
My OpenAI API Key seems to have exceeded it's current quota, and it returned the following instead of a SearchResponse type.
{
results: [
{
code: 400,
error: 'OpenAI API error: You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.'
}
]
}
Steps to reproduce
Use an OpenAI Key that has exceeded quota.
Expected Behavior
There should be a union type for the SearchResponse type to have a type guard check for errors in the multiSearch.perform
I was doing the following:
I get no visibility of the errors in the types and so I gotta add a lot of linter-ignores to be able to check whether the first result of my search had an error code.
Metadata
Typesense Version: "typesense": "^1.8.2",
OS: MacOS
The text was updated successfully, but these errors were encountered:
Description
My OpenAI API Key seems to have exceeded it's current quota, and it returned the following instead of a
SearchResponse
type.Steps to reproduce
Use an OpenAI Key that has exceeded quota.
Expected Behavior
There should be a union type for the SearchResponse type to have a type guard check for errors in the
multiSearch.perform
I was doing the following:
Actual Behavior
I get no visibility of the errors in the types and so I gotta add a lot of linter-ignores to be able to check whether the first result of my search had an error code.
Metadata
Typesense Version: "typesense": "^1.8.2",
OS: MacOS
The text was updated successfully, but these errors were encountered: