kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
fix: cli streaming issue
rodzic
26a16fb5c4
commit
6e256e9721
|
@ -87,8 +87,9 @@ async function main() {
|
|||
timeoutMs: options.timeout || undefined,
|
||||
onProgress: options.stream
|
||||
? (progress) => {
|
||||
const { text } = progress.detail.choices[0]
|
||||
process.stdout.write(text)
|
||||
if (progress.delta) {
|
||||
process.stdout.write(progress.delta)
|
||||
}
|
||||
}
|
||||
: undefined
|
||||
})
|
||||
|
|
Ładowanie…
Reference in New Issue