Skip to content

Commit

Permalink
Update api.ts to set proper header "Accept"
Browse files Browse the repository at this point in the history
So it can work fine for some GPT forward service.
  • Loading branch information
Rocky0102 authored Dec 18, 2023
1 parent efdd615 commit 24d7dc9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/client/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ export function getHeaders() {
const headers: Record<string, string> = {
"Content-Type": "application/json",
"x-requested-with": "XMLHttpRequest",
"Accept": "application/json",
};

const isAzure = accessStore.provider === ServiceProvider.Azure;
Expand Down

0 comments on commit 24d7dc9

Please sign in to comment.