mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-08-15 12:15:37 +08:00
feat: support waylaidwanderer self-hosted api (#182)
This commit is contained in:
@@ -1,12 +1,5 @@
|
||||
import { Models } from '../config/index.mjs'
|
||||
|
||||
/**
|
||||
* @typedef {object} BingWeb
|
||||
* @property {string|null} conversationSignature
|
||||
* @property {string|null} conversationId
|
||||
* @property {string|null} clientId
|
||||
* @property {string|null} invocationId
|
||||
*/
|
||||
/**
|
||||
* @typedef {object} Session
|
||||
* @property {string|null} question
|
||||
@@ -20,7 +13,10 @@ import { Models } from '../config/index.mjs'
|
||||
* @property {string|null} conversationId - chatGPT web mode
|
||||
* @property {string|null} messageId - chatGPT web mode
|
||||
* @property {string|null} parentMessageId - chatGPT web mode
|
||||
* @property {BingWeb} bingWeb
|
||||
* @property {string|null} bingWeb_conversationSignature
|
||||
* @property {string|null} bingWeb_conversationId
|
||||
* @property {string|null} bingWeb_clientId
|
||||
* @property {string|null} bingWeb_invocationId
|
||||
*/
|
||||
/**
|
||||
* @param {string|null} question
|
||||
@@ -57,11 +53,9 @@ export function initSession({
|
||||
parentMessageId: null,
|
||||
|
||||
// bing
|
||||
bingWeb: {
|
||||
conversationSignature: null,
|
||||
conversationId: null,
|
||||
clientId: null,
|
||||
invocationId: null,
|
||||
},
|
||||
bingWeb_conversationSignature: null,
|
||||
bingWeb_conversationId: null,
|
||||
bingWeb_clientId: null,
|
||||
bingWeb_invocationId: null,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user