@waylaidwanderer/chatgpt-api
Advanced tools
Comparing version 1.3.0 to 1.3.1
{ | ||
"name": "@waylaidwanderer/chatgpt-api", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "A ChatGPT implementation using the official ChatGPT model via OpenAI's API.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -53,4 +53,2 @@ <p align="center"> | ||
model: 'text-chat-davinci-002-20230126', | ||
// The default temperature is 0.7, but you can override it here | ||
temperature: 0.7, | ||
}, | ||
@@ -98,4 +96,2 @@ // (Optional) Set a custom prompt prefix. As per my testing it should work with two newlines | ||
model: 'text-chat-davinci-002-20230126', | ||
// The default temperature is 0.7, but you can override it here | ||
temperature: 0.7, | ||
}, | ||
@@ -102,0 +98,0 @@ // (Optional) Set a custom prompt prefix. As per my testing it should work with two newlines |
@@ -10,4 +10,2 @@ export default { | ||
model: 'text-chat-davinci-002-20230126', | ||
// The default temperature is 0.7, but you can override it here | ||
temperature: 0.7, | ||
}, | ||
@@ -14,0 +12,0 @@ // (Optional) Set a custom prompt prefix. As per my testing it should work with two newlines |
@@ -22,3 +22,4 @@ import fetch from 'node-fetch'; | ||
model: modelOptions.model || CHATGPT_MODEL, | ||
temperature: typeof modelOptions.temperature === 'undefined' ? 0.7 : modelOptions.temperature, | ||
temperature: typeof modelOptions.temperature === 'undefined' ? 1 : modelOptions.temperature, | ||
top_p: typeof modelOptions.top_p === 'undefined' ? 0.7 : modelOptions.top_p, | ||
presence_penalty: typeof modelOptions.presence_penalty === 'undefined' ? 0.6 : modelOptions.presence_penalty, | ||
@@ -25,0 +26,0 @@ stop: modelOptions.stop || ['<|im_end|>', '<|im_sep|>'], |
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
167544
293
175