chatgpt-jdasa
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -279,7 +279,10 @@ // src/chatgpt-api.ts | ||
const delta = response.choices[0].delta; | ||
result.delta = delta == null ? void 0 : delta.content; | ||
if (delta == null ? void 0 : delta.content) | ||
result.text += delta.content; | ||
if (delta.role) { | ||
result.role = delta.role; | ||
console.log("delta=%o", delta); | ||
if (delta) { | ||
result.delta = delta == null ? void 0 : delta.content; | ||
if (delta == null ? void 0 : delta.content) | ||
result.text += delta.content; | ||
if (delta.role) { | ||
result.role = delta.role; | ||
} | ||
} | ||
@@ -286,0 +289,0 @@ result.detail = response; |
{ | ||
"name": "chatgpt-jdasa", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Node.js client for the official ChatGPT API,support gpt-4o and image_url.", | ||
@@ -5,0 +5,0 @@ "author": "Travis Fischer <travis@transitivebullsh.it>", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
131523
1321