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

Commit

Permalink
Revert to original single response handling of completions in line wi…
Browse files Browse the repository at this point in the history
…th server correction
  • Loading branch information
Sean Gillespie committed Oct 6, 2021
1 parent ba8280e commit cc09860
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 cc09860

Please sign in to comment.