Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
Merge pull request #114 from latitudegames/completions-response
Browse files Browse the repository at this point in the history
Revert to original single response handling of completions in line wi…
  • Loading branch information
Sean Gillespie authored Oct 6, 2021
2 parents ba8280e + cc09860 commit 70ac562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/services/game-api/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const completion = async body => {
},
body: JSON.stringify({ ...body, prompt: body.prompt.trimEnd() }),
})
const result = await response.text()
const { result } = await response.json()
return result
} catch (err) {
// eslint-disable-next-line no-console
Expand Down

0 comments on commit 70ac562

Please sign in to comment.