mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: add a todo
This commit is contained in:
parent
f4a94f61db
commit
ef54cad1fd
1 changed files with 1 additions and 0 deletions
|
|
@ -93,6 +93,7 @@ export class OfficialChatGPTClient {
|
|||
let body = await res.json()
|
||||
throw new Error(JSON.stringify(body, null, 2))
|
||||
}
|
||||
// todo accept as stream
|
||||
const decoder = new TextDecoder('utf-8')
|
||||
const bodyBytes = await res.arrayBuffer()
|
||||
const bodyText = decoder.decode(bodyBytes)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue