chatgpt-jdasa
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -451,5 +451,9 @@ import Keyv from 'keyv'; | ||
set apiKey(apiKey: string); | ||
get apiBaseUrl(): string; | ||
set apiBaseUrl(apiBaseUrl: string); | ||
get systemMessage(): string; | ||
set systemMessage(systemMessage: string); | ||
get maxModelTokens(): number; | ||
set maxModelTokens(maxModelTokens: number); | ||
get maxResponseTokens(): number; | ||
set maxResponseTokens(maxResponseTokens: number); | ||
@@ -456,0 +460,0 @@ get apiOrg(): string; |
@@ -383,11 +383,23 @@ // src/chatgpt-api.ts | ||
} | ||
get apiBaseUrl() { | ||
return this._apiBaseUrl; | ||
} | ||
set apiBaseUrl(apiBaseUrl) { | ||
this._apiBaseUrl = apiBaseUrl; | ||
} | ||
get systemMessage() { | ||
return this._systemMessage; | ||
} | ||
set systemMessage(systemMessage) { | ||
this._systemMessage = systemMessage; | ||
} | ||
get maxModelTokens() { | ||
return this._maxModelTokens; | ||
} | ||
set maxModelTokens(maxModelTokens) { | ||
this._maxModelTokens = maxModelTokens; | ||
} | ||
get maxResponseTokens() { | ||
return this._maxResponseTokens; | ||
} | ||
set maxResponseTokens(maxResponseTokens) { | ||
@@ -435,3 +447,2 @@ this._maxResponseTokens = maxResponseTokens; | ||
let numTokens = 0; | ||
console.log("nextMessages=%o", JSON.stringify(nextMessages)); | ||
do { | ||
@@ -438,0 +449,0 @@ const prompt = nextMessages.reduce((prompt2, message) => { |
{ | ||
"name": "chatgpt-jdasa", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"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
134224
1364