ArneBouillon 2023-06-29 16:08:28 +08:00 zatwierdzone przez GitHub
commit b6833020a4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 17 dodań i 11 usunięć

Wyświetl plik

@ -141,16 +141,20 @@ export class ChatGPTUnofficialProxyAPI {
const body: types.ConversationJSONBody = {
action,
messages: [
{
id: messageId,
role: 'user',
content: {
content_type: 'text',
parts: [text]
}
...(
action === 'continue' ? {} : {
messages: [
{
id: messageId,
role: 'user',
content: {
content_type: 'text',
parts: [text]
}
}
],
}
],
),
model: this._model,
parent_message_id: parentMessageId
}

Wyświetl plik

@ -50,7 +50,7 @@ export type SendMessageOptions = {
>
}
export type MessageActionType = 'next' | 'variant'
export type MessageActionType = 'next' | 'continue' | 'variant'
export type SendMessageBrowserOptions = {
conversationId?: string
@ -118,8 +118,10 @@ export type ConversationJSONBody = {
/**
* Prompts to provide
*
* Should be null when the action is 'continue'
*/
messages: Prompt[]
messages?: Prompt[]
/**
* The model to use