fix custom mode creation
This commit is contained in:
+7
-2
@@ -265,14 +265,19 @@ class YouProvider {
|
|||||||
// 创建新的user chat mode
|
// 创建新的user chat mode
|
||||||
let userChatMode = await page.evaluate(
|
let userChatMode = await page.evaluate(
|
||||||
async (proxyModel, proxyModelName) => {
|
async (proxyModel, proxyModelName) => {
|
||||||
return fetch("https://you.com/api/user_chat_modes", {
|
return fetch("https://you.com/api/custom_assistants/assistants", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
aiModel: proxyModel,
|
aiModel: proxyModel,
|
||||||
chatModeName: proxyModelName,
|
|
||||||
hasLiveWebAccess: false,
|
hasLiveWebAccess: false,
|
||||||
hasPersonalization: false,
|
hasPersonalization: false,
|
||||||
|
hideInstructions: true,
|
||||||
|
includeFollowUps: false,
|
||||||
instructions: "Please review the attached prompt",
|
instructions: "Please review the attached prompt",
|
||||||
|
instructionsSummary:"",
|
||||||
|
isUserOwned: true,
|
||||||
|
name: proxyModelName,
|
||||||
|
visibility: "private",
|
||||||
}),
|
}),
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
|
|||||||
Reference in New Issue
Block a user