mirror of
https://github.com/openai/openai-cookbook
synced 2024-11-08 01:10:29 +00:00
Update FileQandAArea.tsx
This commit is contained in:
parent
308c261bc9
commit
36458a582c
@ -55,8 +55,6 @@ function FileQandAArea(props: FileQandAAreaProps) {
|
|||||||
|
|
||||||
if (searchResultsResponse.status === 200) {
|
if (searchResultsResponse.status === 200) {
|
||||||
results = searchResultsResponse.data.searchResults;
|
results = searchResultsResponse.data.searchResults;
|
||||||
} else if (searchResultsResponse.status === 500) {
|
|
||||||
setAnswerError("Internal server error. Please try again later.");
|
|
||||||
} else {
|
} else {
|
||||||
setAnswerError("Sorry, something went wrong!");
|
setAnswerError("Sorry, something went wrong!");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user