kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
feat: 暴露buildMessages 方法
rodzic
478989a209
commit
4c5e9b7487
|
@ -358,6 +358,10 @@ export class ChatGPTAPI {
|
|||
this._apiOrg = apiOrg
|
||||
}
|
||||
|
||||
async buildMessages(text: string, opts: types.SendMessageOptions) {
|
||||
return this._buildMessages(text, opts)
|
||||
}
|
||||
|
||||
protected async _buildMessages(text: string, opts: types.SendMessageOptions) {
|
||||
const { systemMessage = this._systemMessage } = opts
|
||||
let { parentMessageId } = opts
|
||||
|
|
Ładowanie…
Reference in New Issue