sillytavern 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dockerignore +4 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +35 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/.github/workflows/npm-publish.yml +32 -0
- package/Dockerfile +49 -0
- package/Start.bat +3 -0
- package/colab/GPU.ipynb +339 -0
- package/colab/extras_server.py +40 -0
- package/colab/globals.py +2 -0
- package/colab/models.py +77 -0
- package/docker/docker-compose.yml +12 -0
- package/docker/docker-entrypoint.sh +28 -0
- package/faq.md +208 -0
- package/package.json +49 -0
- package/poe-client.js +638 -0
- package/poe-test.js +21 -0
- package/poe_graphql/AddHumanMessageMutation.graphql +52 -0
- package/poe_graphql/AddMessageBreakMutation.graphql +17 -0
- package/poe_graphql/AutoSubscriptionMutation.graphql +7 -0
- package/poe_graphql/BioFragment.graphql +8 -0
- package/poe_graphql/ChatAddedSubscription.graphql +5 -0
- package/poe_graphql/ChatFragment.graphql +6 -0
- package/poe_graphql/ChatListPaginationQuery.graphql +316 -0
- package/poe_graphql/ChatPaginationQuery.graphql +26 -0
- package/poe_graphql/ChatViewQuery.graphql +8 -0
- package/poe_graphql/DeleteHumanMessagesMutation.graphql +7 -0
- package/poe_graphql/DeleteMessageMutation.graphql +7 -0
- package/poe_graphql/HandleFragment.graphql +8 -0
- package/poe_graphql/LoginWithVerificationCodeMutation.graphql +13 -0
- package/poe_graphql/MessageAddedSubscription.graphql +115 -0
- package/poe_graphql/MessageDeletedSubscription.graphql +8 -0
- package/poe_graphql/MessageFragment.graphql +13 -0
- package/poe_graphql/MessageRemoveVoteMutation.graphql +7 -0
- package/poe_graphql/MessageSetVoteMutation.graphql +7 -0
- package/poe_graphql/SendVerificationCodeForLoginMutation.graphql +12 -0
- package/poe_graphql/ShareMessagesMutation.graphql +9 -0
- package/poe_graphql/SignupWithVerificationCodeMutation.graphql +13 -0
- package/poe_graphql/StaleChatUpdateMutation.graphql +7 -0
- package/poe_graphql/SubscriptionsMutation.graphql +9 -0
- package/poe_graphql/SummarizePlainPostQuery.graphql +3 -0
- package/poe_graphql/SummarizeQuotePostQuery.graphql +3 -0
- package/poe_graphql/SummarizeSharePostQuery.graphql +3 -0
- package/poe_graphql/UserSnippetFragment.graphql +14 -0
- package/poe_graphql/ViewerInfoQuery.graphql +21 -0
- package/poe_graphql/ViewerMessageLimitUpdatedSubscription.graphql +81 -0
- package/poe_graphql/ViewerStateFragment.graphql +30 -0
- package/poe_graphql/ViewerStateUpdatedSubscription.graphql +63 -0
- package/public/KoboldAI Settings/Ace of Spades 13B.settings +22 -0
- package/public/KoboldAI Settings/Adventurer-NeoX-20B-Erebus.settings +54 -0
- package/public/KoboldAI Settings/Basic Coherence 13B.settings +22 -0
- package/public/KoboldAI Settings/Best Guess 6B.settings +22 -0
- package/public/KoboldAI Settings/Calibrated-Pygmalion-6b.settings +47 -0
- package/public/KoboldAI Settings/Classic-Pygmalion-2.7b.settings +46 -0
- package/public/KoboldAI Settings/Classic-Pygmalion-6b.settings +47 -0
- package/public/KoboldAI Settings/Coherent Creativity 6B.settings +22 -0
- package/public/KoboldAI Settings/Default-TavernAI.settings +22 -0
- package/public/KoboldAI Settings/DragonSlayer-Pygmalion-6b.settings +47 -0
- package/public/KoboldAI Settings/GPU-Pygmalion-6b.settings +47 -0
- package/public/KoboldAI Settings/Genesis 13B.settings +22 -0
- package/public/KoboldAI Settings/Godlike.settings +22 -0
- package/public/KoboldAI Settings/Good Winds.settings +22 -0
- package/public/KoboldAI Settings/Lancer-OPT-2.7B-Erebus.settings +54 -0
- package/public/KoboldAI Settings/Liminal Drift.settings +22 -0
- package/public/KoboldAI Settings/Low Rider 13B.settings +22 -0
- package/public/KoboldAI Settings/Luna Moth 6B.settings +22 -0
- package/public/KoboldAI Settings/Mayday.settings +22 -0
- package/public/KoboldAI Settings/Ouroboros.settings +22 -0
- package/public/KoboldAI Settings/Pleasing Results 6B.settings +22 -0
- package/public/KoboldAI Settings/Pro Writer 13B.settings +22 -0
- package/public/KoboldAI Settings/RA - Pygmalion-1.3b.settings +46 -0
- package/public/KoboldAI Settings/Storywriter 6B.settings +22 -0
- package/public/NovelAI Settings/Classic-Euterpe.settings +14 -0
- package/public/NovelAI Settings/Classic-Krake.settings +14 -0
- package/public/OpenAI Settings/Default.settings +15 -0
- package/public/TextGen Settings/Beam Search.settings +15 -0
- package/public/TextGen Settings/Contrastive Search.settings +15 -0
- package/public/TextGen Settings/Default.settings +15 -0
- package/public/TextGen Settings/Deterministic.settings +15 -0
- package/public/TextGen Settings/Kobold (Godlike).settings +15 -0
- package/public/TextGen Settings/Kobold (Liminal Drift).settings +15 -0
- package/public/TextGen Settings/Naive.settings +15 -0
- package/public/TextGen Settings/NovelAI (Best Guess).settings +15 -0
- package/public/TextGen Settings/NovelAI (Decadence).settings +15 -0
- package/public/TextGen Settings/NovelAI (Genesis).settings +15 -0
- package/public/TextGen Settings/NovelAI (Lycaenidae).settings +15 -0
- package/public/TextGen Settings/NovelAI (Ouroboros).settings +15 -0
- package/public/TextGen Settings/NovelAI (Pleasing Results).settings +15 -0
- package/public/TextGen Settings/NovelAI (Sphinx Moth).settings +15 -0
- package/public/TextGen Settings/NovelAI (Storywriter).settings +15 -0
- package/public/TextGen Settings/Pygmalion.settings +15 -0
- package/public/css/fontawesome.css +8488 -0
- package/public/css/notes.css +46 -0
- package/public/css/solid.css +24 -0
- package/public/favicon.ico +0 -0
- package/public/img/No-Image-Placeholder.svg +309 -0
- package/public/img/addbg3.png +0 -0
- package/public/img/ai4.png +0 -0
- package/public/img/apple-icon-114x114.png +0 -0
- package/public/img/apple-icon-144x144.png +0 -0
- package/public/img/apple-icon-57x57.png +0 -0
- package/public/img/apple-icon-72x72.png +0 -0
- package/public/img/book2.png +0 -0
- package/public/img/default-expressions/admiration.png +0 -0
- package/public/img/default-expressions/amusement.png +0 -0
- package/public/img/default-expressions/anger.png +0 -0
- package/public/img/default-expressions/annoyance.png +0 -0
- package/public/img/default-expressions/approval.png +0 -0
- package/public/img/default-expressions/caring.png +0 -0
- package/public/img/default-expressions/confusion.png +0 -0
- package/public/img/default-expressions/curiosity.png +0 -0
- package/public/img/default-expressions/desire.png +0 -0
- package/public/img/default-expressions/desire1.png +0 -0
- package/public/img/default-expressions/desire2.png +0 -0
- package/public/img/default-expressions/disappointment.png +0 -0
- package/public/img/default-expressions/disapproval.png +0 -0
- package/public/img/default-expressions/disgust.png +0 -0
- package/public/img/default-expressions/embarrassment.png +0 -0
- package/public/img/default-expressions/excitement.png +0 -0
- package/public/img/default-expressions/fear.png +0 -0
- package/public/img/default-expressions/gratitude.png +0 -0
- package/public/img/default-expressions/grief.png +0 -0
- package/public/img/default-expressions/joy.png +0 -0
- package/public/img/default-expressions/love.png +0 -0
- package/public/img/default-expressions/nervousness.png +0 -0
- package/public/img/default-expressions/neutral.png +0 -0
- package/public/img/default-expressions/optimism.png +0 -0
- package/public/img/default-expressions/pride.png +0 -0
- package/public/img/default-expressions/realization.png +0 -0
- package/public/img/default-expressions/relief.png +0 -0
- package/public/img/default-expressions/remorse.png +0 -0
- package/public/img/default-expressions/sadness.png +0 -0
- package/public/img/default-expressions/surprise.png +0 -0
- package/public/img/five.png +0 -0
- package/public/img/times-circle.svg +1 -0
- package/public/img/you.png +0 -0
- package/public/index.html +1899 -0
- package/public/notes/1.html +44 -0
- package/public/notes/1.png +0 -0
- package/public/notes/10.html +20 -0
- package/public/notes/11.html +33 -0
- package/public/notes/12.html +27 -0
- package/public/notes/13.html +29 -0
- package/public/notes/13_1.html +24 -0
- package/public/notes/13_2.html +25 -0
- package/public/notes/13_3.html +89 -0
- package/public/notes/14.html +30 -0
- package/public/notes/2.html +37 -0
- package/public/notes/2.png +0 -0
- package/public/notes/3.html +37 -0
- package/public/notes/4.html +105 -0
- package/public/notes/6.html +33 -0
- package/public/notes/7.html +40 -0
- package/public/notes/8.html +19 -0
- package/public/notes/9.html +46 -0
- package/public/notes/advanced_formatting.html +91 -0
- package/public/notes/group_reply_strategy.html +63 -0
- package/public/notes/message_sound.html +33 -0
- package/public/notes/multigen.html +36 -0
- package/public/notes/oai_api_key.html +37 -0
- package/public/notes/textgen_streaming.html +29 -0
- package/public/notes/token-limits.html +68 -0
- package/public/script.js +5131 -0
- package/public/scripts/RossAscends-mods.js +750 -0
- package/public/scripts/bookmarks.js +130 -0
- package/public/scripts/extensions/backgrounds/index.js +129 -0
- package/public/scripts/extensions/backgrounds/manifest.json +11 -0
- package/public/scripts/extensions/backgrounds/style.css +45 -0
- package/public/scripts/extensions/caption/index.js +117 -0
- package/public/scripts/extensions/caption/manifest.json +13 -0
- package/public/scripts/extensions/caption/style.css +23 -0
- package/public/scripts/extensions/dice/droll.js +108 -0
- package/public/scripts/extensions/dice/index.js +96 -0
- package/public/scripts/extensions/dice/manifest.json +11 -0
- package/public/scripts/extensions/dice/style.css +26 -0
- package/public/scripts/extensions/expressions/index.js +387 -0
- package/public/scripts/extensions/expressions/manifest.json +13 -0
- package/public/scripts/extensions/expressions/style.css +115 -0
- package/public/scripts/extensions/floating-prompt/index.js +151 -0
- package/public/scripts/extensions/floating-prompt/manifest.json +11 -0
- package/public/scripts/extensions/floating-prompt/style.css +19 -0
- package/public/scripts/extensions/memory/index.js +358 -0
- package/public/scripts/extensions/memory/manifest.json +13 -0
- package/public/scripts/extensions/memory/style.css +34 -0
- package/public/scripts/extensions.js +288 -0
- package/public/scripts/f-localStorage.js +27 -0
- package/public/scripts/gpt-2-3-tokenizer/README.md +28 -0
- package/public/scripts/gpt-2-3-tokenizer/encoder.js +1 -0
- package/public/scripts/gpt-2-3-tokenizer/mod.js +169 -0
- package/public/scripts/gpt-2-3-tokenizer/vocab.bpe.js +1 -0
- package/public/scripts/gpt-3-tokenizer/array-keyed-map.js +210 -0
- package/public/scripts/gpt-3-tokenizer/gpt3-tokenizer.js +271 -0
- package/public/scripts/gpt-3-tokenizer/gpt3-tokenizer.js.map +1 -0
- package/public/scripts/group-chats.js +899 -0
- package/public/scripts/horde.js +214 -0
- package/public/scripts/jquery-3.5.1.min.js +2 -0
- package/public/scripts/jquery-cookie-1.4.1.min.js +2 -0
- package/public/scripts/jquery.transit.min.js +1 -0
- package/public/scripts/kai-settings.js +179 -0
- package/public/scripts/nai-settings.js +108 -0
- package/public/scripts/openai.js +973 -0
- package/public/scripts/poe.js +360 -0
- package/public/scripts/popper.js +2008 -0
- package/public/scripts/popper.js.map +1 -0
- package/public/scripts/power-user.js +571 -0
- package/public/scripts/purify.min.js +3 -0
- package/public/scripts/purify.min.js.map +1 -0
- package/public/scripts/showdown.min.js +3 -0
- package/public/scripts/showdown.min.js.map +1 -0
- package/public/scripts/swiped-events.js +165 -0
- package/public/scripts/textgen-settings.js +194 -0
- package/public/scripts/toolcool-color-picker.js +87 -0
- package/public/scripts/utils.js +109 -0
- package/public/scripts/world-info.js +661 -0
- package/public/sounds/message.mp3 +0 -0
- package/public/style.css +3633 -0
- package/public/webfonts/NotoSans/NotoSans-Black.woff +0 -0
- package/public/webfonts/NotoSans/NotoSans-Black.woff2 +0 -0
- package/public/webfonts/NotoSans/NotoSans-BlackItalic.woff +0 -0
- package/public/webfonts/NotoSans/NotoSans-BlackItalic.woff2 +0 -0
- package/public/webfonts/NotoSans/NotoSans-Bold.woff +0 -0
- package/public/webfonts/NotoSans/NotoSans-Bold.woff2 +0 -0
- package/public/webfonts/NotoSans/NotoSans-BoldItalic.woff +0 -0
- package/public/webfonts/NotoSans/NotoSans-BoldItalic.woff2 +0 -0
- package/public/webfonts/NotoSans/NotoSans-ExtraBold.woff +0 -0
- package/public/webfonts/NotoSans/NotoSans-ExtraBold.woff2 +0 -0
- package/public/webfonts/NotoSans/NotoSans-ExtraBoldItalic.woff +0 -0
- package/public/webfonts/NotoSans/NotoSans-ExtraBoldItalic.woff2 +0 -0
- package/public/webfonts/NotoSans/NotoSans-ExtraLight.woff +0 -0
- package/public/webfonts/NotoSans/NotoSans-ExtraLight.woff2 +0 -0
- package/public/webfonts/NotoSans/NotoSans-ExtraLightItalic.woff +0 -0
- package/public/webfonts/NotoSans/NotoSans-ExtraLightItalic.woff2 +0 -0
- package/public/webfonts/NotoSans/NotoSans-Italic.woff +0 -0
- package/public/webfonts/NotoSans/NotoSans-Italic.woff2 +0 -0
- package/public/webfonts/NotoSans/NotoSans-Light.woff +0 -0
- package/public/webfonts/NotoSans/NotoSans-Light.woff2 +0 -0
- package/public/webfonts/NotoSans/NotoSans-LightItalic.woff +0 -0
- package/public/webfonts/NotoSans/NotoSans-LightItalic.woff2 +0 -0
- package/public/webfonts/NotoSans/NotoSans-Medium.woff +0 -0
- package/public/webfonts/NotoSans/NotoSans-Medium.woff2 +0 -0
- package/public/webfonts/NotoSans/NotoSans-MediumItalic.woff +0 -0
- package/public/webfonts/NotoSans/NotoSans-MediumItalic.woff2 +0 -0
- package/public/webfonts/NotoSans/NotoSans-Regular.woff +0 -0
- package/public/webfonts/NotoSans/NotoSans-Regular.woff2 +0 -0
- package/public/webfonts/NotoSans/NotoSans-SemiBold.woff +0 -0
- package/public/webfonts/NotoSans/NotoSans-SemiBold.woff2 +0 -0
- package/public/webfonts/NotoSans/NotoSans-SemiBoldItalic.woff +0 -0
- package/public/webfonts/NotoSans/NotoSans-SemiBoldItalic.woff2 +0 -0
- package/public/webfonts/NotoSans/NotoSans-Thin.woff +0 -0
- package/public/webfonts/NotoSans/NotoSans-Thin.woff2 +0 -0
- package/public/webfonts/NotoSans/NotoSans-ThinItalic.woff +0 -0
- package/public/webfonts/NotoSans/NotoSans-ThinItalic.woff2 +0 -0
- package/public/webfonts/NotoSans/stylesheet.css +162 -0
- package/public/webfonts/fa-solid-900.ttf +0 -0
- package/public/webfonts/fa-solid-900.woff2 +0 -0
- package/readme.md +187 -0
- package/server.js +2593 -0
- package/start.sh +24 -0
- package/tools/charaverter/main.mjs +110 -0
- package/tools/charaverter/package.json +10 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
mutation AddHumanMessageMutation(
|
|
2
|
+
$chatId: BigInt!
|
|
3
|
+
$bot: String!
|
|
4
|
+
$query: String!
|
|
5
|
+
$source: MessageSource
|
|
6
|
+
$withChatBreak: Boolean! = false
|
|
7
|
+
) {
|
|
8
|
+
messageCreateWithStatus(
|
|
9
|
+
chatId: $chatId
|
|
10
|
+
bot: $bot
|
|
11
|
+
query: $query
|
|
12
|
+
source: $source
|
|
13
|
+
withChatBreak: $withChatBreak
|
|
14
|
+
) {
|
|
15
|
+
message {
|
|
16
|
+
id
|
|
17
|
+
__typename
|
|
18
|
+
messageId
|
|
19
|
+
text
|
|
20
|
+
linkifiedText
|
|
21
|
+
authorNickname
|
|
22
|
+
state
|
|
23
|
+
vote
|
|
24
|
+
voteReason
|
|
25
|
+
creationTime
|
|
26
|
+
suggestedReplies
|
|
27
|
+
chat {
|
|
28
|
+
id
|
|
29
|
+
shouldShowDisclaimer
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
messageLimit{
|
|
33
|
+
canSend
|
|
34
|
+
numMessagesRemaining
|
|
35
|
+
resetTime
|
|
36
|
+
shouldShowReminder
|
|
37
|
+
}
|
|
38
|
+
chatBreak {
|
|
39
|
+
id
|
|
40
|
+
__typename
|
|
41
|
+
messageId
|
|
42
|
+
text
|
|
43
|
+
linkifiedText
|
|
44
|
+
authorNickname
|
|
45
|
+
state
|
|
46
|
+
vote
|
|
47
|
+
voteReason
|
|
48
|
+
creationTime
|
|
49
|
+
suggestedReplies
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
mutation AddMessageBreakMutation($chatId: BigInt!) {
|
|
2
|
+
messageBreakCreate(chatId: $chatId) {
|
|
3
|
+
message {
|
|
4
|
+
id
|
|
5
|
+
__typename
|
|
6
|
+
messageId
|
|
7
|
+
text
|
|
8
|
+
linkifiedText
|
|
9
|
+
authorNickname
|
|
10
|
+
state
|
|
11
|
+
vote
|
|
12
|
+
voteReason
|
|
13
|
+
creationTime
|
|
14
|
+
suggestedReplies
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
query ChatListPaginationQuery(
|
|
2
|
+
$count: Int = 5
|
|
3
|
+
$cursor: String
|
|
4
|
+
$id: ID!
|
|
5
|
+
) {
|
|
6
|
+
node(id: $id) {
|
|
7
|
+
__typename
|
|
8
|
+
...ChatPageMain_chat_1G22uz
|
|
9
|
+
id
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
fragment BotImage_bot on Bot {
|
|
14
|
+
image {
|
|
15
|
+
__typename
|
|
16
|
+
... on LocalBotImage {
|
|
17
|
+
localName
|
|
18
|
+
}
|
|
19
|
+
... on UrlBotImage {
|
|
20
|
+
url
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
displayName
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
fragment ChatMessageDownvotedButton_message on Message {
|
|
27
|
+
...MessageFeedbackReasonModal_message
|
|
28
|
+
...MessageFeedbackOtherModal_message
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
fragment ChatMessageDropdownMenu_message on Message {
|
|
32
|
+
id
|
|
33
|
+
messageId
|
|
34
|
+
vote
|
|
35
|
+
text
|
|
36
|
+
linkifiedText
|
|
37
|
+
...chatHelpers_isBotMessage
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
fragment ChatMessageFeedbackButtons_message on Message {
|
|
41
|
+
id
|
|
42
|
+
messageId
|
|
43
|
+
vote
|
|
44
|
+
voteReason
|
|
45
|
+
...ChatMessageDownvotedButton_message
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
fragment ChatMessageInputView_chat on Chat {
|
|
49
|
+
id
|
|
50
|
+
chatId
|
|
51
|
+
defaultBotObject {
|
|
52
|
+
nickname
|
|
53
|
+
messageLimit {
|
|
54
|
+
dailyBalance
|
|
55
|
+
shouldShowRemainingMessageCount
|
|
56
|
+
}
|
|
57
|
+
id
|
|
58
|
+
}
|
|
59
|
+
shouldShowDisclaimer
|
|
60
|
+
...chatHelpers_useSendMessage_chat
|
|
61
|
+
...chatHelpers_useSendChatBreak_chat
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
fragment ChatMessageInputView_edges on MessageEdge {
|
|
65
|
+
node {
|
|
66
|
+
...chatHelpers_isChatBreak
|
|
67
|
+
...chatHelpers_isHumanMessage
|
|
68
|
+
state
|
|
69
|
+
text
|
|
70
|
+
id
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
fragment ChatMessageOverflowButton_message on Message {
|
|
75
|
+
text
|
|
76
|
+
...ChatMessageDropdownMenu_message
|
|
77
|
+
...chatHelpers_isBotMessage
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
fragment ChatMessageSuggestedReplies_SuggestedReplyButton_chat on Chat {
|
|
81
|
+
...chatHelpers_useSendMessage_chat
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
fragment ChatMessageSuggestedReplies_SuggestedReplyButton_message on Message {
|
|
85
|
+
messageId
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
fragment ChatMessageSuggestedReplies_chat on Chat {
|
|
89
|
+
...ChatWelcomeView_chat
|
|
90
|
+
...ChatMessageSuggestedReplies_SuggestedReplyButton_chat
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
fragment ChatMessageSuggestedReplies_message on Message {
|
|
94
|
+
suggestedReplies
|
|
95
|
+
...ChatMessageSuggestedReplies_SuggestedReplyButton_message
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
fragment ChatMessage_chat on Chat {
|
|
99
|
+
defaultBotObject {
|
|
100
|
+
...ChatPageDisclaimer_bot
|
|
101
|
+
messageLimit {
|
|
102
|
+
...ChatPageRateLimitedBanner_messageLimit
|
|
103
|
+
}
|
|
104
|
+
id
|
|
105
|
+
}
|
|
106
|
+
...ChatMessageSuggestedReplies_chat
|
|
107
|
+
...ChatWelcomeView_chat
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
fragment ChatMessage_message on Message {
|
|
111
|
+
id
|
|
112
|
+
messageId
|
|
113
|
+
text
|
|
114
|
+
author
|
|
115
|
+
linkifiedText
|
|
116
|
+
state
|
|
117
|
+
...ChatMessageSuggestedReplies_message
|
|
118
|
+
...ChatMessageFeedbackButtons_message
|
|
119
|
+
...ChatMessageOverflowButton_message
|
|
120
|
+
...chatHelpers_isHumanMessage
|
|
121
|
+
...chatHelpers_isBotMessage
|
|
122
|
+
...chatHelpers_isChatBreak
|
|
123
|
+
...chatHelpers_useTimeoutLevel
|
|
124
|
+
...MarkdownLinkInner_message
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
fragment ChatMessagesView_chat on Chat {
|
|
128
|
+
...ChatMessage_chat
|
|
129
|
+
...ChatWelcomeView_chat
|
|
130
|
+
defaultBotObject {
|
|
131
|
+
messageLimit {
|
|
132
|
+
...ChatPageRateLimitedBanner_messageLimit
|
|
133
|
+
}
|
|
134
|
+
id
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
fragment ChatMessagesView_edges on MessageEdge {
|
|
139
|
+
node {
|
|
140
|
+
id
|
|
141
|
+
messageId
|
|
142
|
+
creationTime
|
|
143
|
+
...ChatMessage_message
|
|
144
|
+
...chatHelpers_isBotMessage
|
|
145
|
+
...chatHelpers_isHumanMessage
|
|
146
|
+
...chatHelpers_isChatBreak
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
fragment ChatPageDeleteFooter_chat on Chat {
|
|
151
|
+
...MessageDeleteConfirmationModal_chat
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
fragment ChatPageDisclaimer_bot on Bot {
|
|
155
|
+
disclaimer
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
fragment ChatPageMain_chat_1G22uz on Chat {
|
|
159
|
+
id
|
|
160
|
+
chatId
|
|
161
|
+
...ChatMessageInputView_chat
|
|
162
|
+
...ChatPageShareFooter_chat
|
|
163
|
+
...ChatPageDeleteFooter_chat
|
|
164
|
+
...ChatMessagesView_chat
|
|
165
|
+
...MarkdownLinkInner_chat
|
|
166
|
+
...chatHelpers_useUpdateStaleChat_chat
|
|
167
|
+
...ChatSubscriptionPaywallContextWrapper_chat
|
|
168
|
+
messagesConnection(last: $count, before: $cursor) {
|
|
169
|
+
edges {
|
|
170
|
+
...ChatMessagesView_edges
|
|
171
|
+
...ChatMessageInputView_edges
|
|
172
|
+
...MarkdownLinkInner_edges
|
|
173
|
+
node {
|
|
174
|
+
...chatHelpers_useUpdateStaleChat_message
|
|
175
|
+
id
|
|
176
|
+
__typename
|
|
177
|
+
}
|
|
178
|
+
cursor
|
|
179
|
+
id
|
|
180
|
+
}
|
|
181
|
+
pageInfo {
|
|
182
|
+
hasPreviousPage
|
|
183
|
+
startCursor
|
|
184
|
+
}
|
|
185
|
+
id
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
fragment ChatPageRateLimitedBanner_messageLimit on MessageLimit {
|
|
190
|
+
numMessagesRemaining
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
fragment ChatPageShareFooter_chat on Chat {
|
|
194
|
+
chatId
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
fragment ChatSubscriptionPaywallContextWrapper_chat on Chat {
|
|
198
|
+
defaultBotObject {
|
|
199
|
+
messageLimit {
|
|
200
|
+
numMessagesRemaining
|
|
201
|
+
shouldShowRemainingMessageCount
|
|
202
|
+
}
|
|
203
|
+
...SubscriptionPaywallModal_bot
|
|
204
|
+
id
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
fragment ChatWelcomeView_ChatWelcomeButton_chat on Chat {
|
|
209
|
+
...chatHelpers_useSendMessage_chat
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
fragment ChatWelcomeView_chat on Chat {
|
|
213
|
+
...ChatWelcomeView_ChatWelcomeButton_chat
|
|
214
|
+
defaultBotObject {
|
|
215
|
+
displayName
|
|
216
|
+
id
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
fragment MarkdownLinkInner_chat on Chat {
|
|
221
|
+
id
|
|
222
|
+
chatId
|
|
223
|
+
defaultBotObject {
|
|
224
|
+
nickname
|
|
225
|
+
id
|
|
226
|
+
}
|
|
227
|
+
...chatHelpers_useSendMessage_chat
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
fragment MarkdownLinkInner_edges on MessageEdge {
|
|
231
|
+
node {
|
|
232
|
+
state
|
|
233
|
+
id
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
fragment MarkdownLinkInner_message on Message {
|
|
238
|
+
messageId
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
fragment MessageDeleteConfirmationModal_chat on Chat {
|
|
242
|
+
id
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
fragment MessageFeedbackOtherModal_message on Message {
|
|
246
|
+
id
|
|
247
|
+
messageId
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
fragment MessageFeedbackReasonModal_message on Message {
|
|
251
|
+
id
|
|
252
|
+
messageId
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
fragment SubscriptionPaywallModal_bot on Bot {
|
|
256
|
+
displayName
|
|
257
|
+
messageLimit {
|
|
258
|
+
dailyLimit
|
|
259
|
+
numMessagesRemaining
|
|
260
|
+
shouldShowRemainingMessageCount
|
|
261
|
+
resetTime
|
|
262
|
+
}
|
|
263
|
+
...BotImage_bot
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
fragment chatHelpers_isBotMessage on Message {
|
|
267
|
+
...chatHelpers_isHumanMessage
|
|
268
|
+
...chatHelpers_isChatBreak
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
fragment chatHelpers_isChatBreak on Message {
|
|
272
|
+
author
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
fragment chatHelpers_isHumanMessage on Message {
|
|
276
|
+
author
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
fragment chatHelpers_useSendChatBreak_chat on Chat {
|
|
280
|
+
id
|
|
281
|
+
chatId
|
|
282
|
+
defaultBotObject {
|
|
283
|
+
nickname
|
|
284
|
+
introduction
|
|
285
|
+
model
|
|
286
|
+
id
|
|
287
|
+
}
|
|
288
|
+
shouldShowDisclaimer
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
fragment chatHelpers_useSendMessage_chat on Chat {
|
|
292
|
+
id
|
|
293
|
+
chatId
|
|
294
|
+
defaultBotObject {
|
|
295
|
+
nickname
|
|
296
|
+
id
|
|
297
|
+
}
|
|
298
|
+
shouldShowDisclaimer
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
fragment chatHelpers_useTimeoutLevel on Message {
|
|
302
|
+
id
|
|
303
|
+
state
|
|
304
|
+
text
|
|
305
|
+
messageId
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
fragment chatHelpers_useUpdateStaleChat_chat on Chat {
|
|
309
|
+
chatId
|
|
310
|
+
...chatHelpers_useSendChatBreak_chat
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
fragment chatHelpers_useUpdateStaleChat_message on Message {
|
|
314
|
+
creationTime
|
|
315
|
+
...chatHelpers_isChatBreak
|
|
316
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
query ChatPaginationQuery($bot: String!, $before: String, $last: Int! = 10) {
|
|
2
|
+
chatOfBot(bot: $bot) {
|
|
3
|
+
id
|
|
4
|
+
__typename
|
|
5
|
+
messagesConnection(before: $before, last: $last) {
|
|
6
|
+
pageInfo {
|
|
7
|
+
hasPreviousPage
|
|
8
|
+
}
|
|
9
|
+
edges {
|
|
10
|
+
node {
|
|
11
|
+
id
|
|
12
|
+
__typename
|
|
13
|
+
messageId
|
|
14
|
+
text
|
|
15
|
+
linkifiedText
|
|
16
|
+
authorNickname
|
|
17
|
+
state
|
|
18
|
+
vote
|
|
19
|
+
voteReason
|
|
20
|
+
creationTime
|
|
21
|
+
suggestedReplies
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
mutation LoginWithVerificationCodeMutation(
|
|
2
|
+
$verificationCode: String!
|
|
3
|
+
$emailAddress: String
|
|
4
|
+
$phoneNumber: String
|
|
5
|
+
) {
|
|
6
|
+
loginWithVerificationCode(
|
|
7
|
+
verificationCode: $verificationCode
|
|
8
|
+
emailAddress: $emailAddress
|
|
9
|
+
phoneNumber: $phoneNumber
|
|
10
|
+
) {
|
|
11
|
+
status
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
subscription subscriptions_messageAdded_Subscription(
|
|
2
|
+
$chatId: BigInt!
|
|
3
|
+
) {
|
|
4
|
+
messageAdded(chatId: $chatId) {
|
|
5
|
+
id
|
|
6
|
+
messageId
|
|
7
|
+
creationTime
|
|
8
|
+
clientNonce
|
|
9
|
+
state
|
|
10
|
+
...ChatMessage_message
|
|
11
|
+
...chatHelpers_isBotMessage
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
fragment ChatMessageDownvotedButton_message on Message {
|
|
16
|
+
...MessageFeedbackReasonModal_message
|
|
17
|
+
...MessageFeedbackOtherModal_message
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
fragment ChatMessageDropdownMenu_message on Message {
|
|
21
|
+
id
|
|
22
|
+
messageId
|
|
23
|
+
vote
|
|
24
|
+
text
|
|
25
|
+
author
|
|
26
|
+
...chatHelpers_isBotMessage
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
fragment ChatMessageFeedbackButtons_message on Message {
|
|
30
|
+
id
|
|
31
|
+
messageId
|
|
32
|
+
vote
|
|
33
|
+
voteReason
|
|
34
|
+
...ChatMessageDownvotedButton_message
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
fragment ChatMessageOverflowButton_message on Message {
|
|
38
|
+
text
|
|
39
|
+
...ChatMessageDropdownMenu_message
|
|
40
|
+
...chatHelpers_isBotMessage
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
fragment ChatMessageSuggestedReplies_SuggestedReplyButton_message on Message {
|
|
44
|
+
messageId
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
fragment ChatMessageSuggestedReplies_message on Message {
|
|
48
|
+
suggestedReplies
|
|
49
|
+
author
|
|
50
|
+
...ChatMessageSuggestedReplies_SuggestedReplyButton_message
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
fragment ChatMessage_message on Message {
|
|
54
|
+
id
|
|
55
|
+
messageId
|
|
56
|
+
text
|
|
57
|
+
author
|
|
58
|
+
linkifiedText
|
|
59
|
+
state
|
|
60
|
+
contentType
|
|
61
|
+
...ChatMessageSuggestedReplies_message
|
|
62
|
+
...ChatMessageFeedbackButtons_message
|
|
63
|
+
...ChatMessageOverflowButton_message
|
|
64
|
+
...chatHelpers_isHumanMessage
|
|
65
|
+
...chatHelpers_isBotMessage
|
|
66
|
+
...chatHelpers_isChatBreak
|
|
67
|
+
...chatHelpers_useTimeoutLevel
|
|
68
|
+
...MarkdownLinkInner_message
|
|
69
|
+
...IdAnnotation_node
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
fragment IdAnnotation_node on Node {
|
|
73
|
+
__isNode: __typename
|
|
74
|
+
id
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
fragment MarkdownLinkInner_message on Message {
|
|
78
|
+
messageId
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
fragment MessageFeedbackOtherModal_message on Message {
|
|
82
|
+
id
|
|
83
|
+
messageId
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
fragment MessageFeedbackReasonModal_message on Message {
|
|
87
|
+
id
|
|
88
|
+
messageId
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
fragment chatHelpers_isBotMessage on Message {
|
|
92
|
+
...chatHelpers_isHumanMessage
|
|
93
|
+
...chatHelpers_isChatBreak
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
fragment chatHelpers_isChatBreak on Message {
|
|
97
|
+
author
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
fragment chatHelpers_isHumanMessage on Message {
|
|
101
|
+
author
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
fragment chatHelpers_useTimeoutLevel on Message {
|
|
105
|
+
id
|
|
106
|
+
state
|
|
107
|
+
text
|
|
108
|
+
messageId
|
|
109
|
+
author
|
|
110
|
+
chat {
|
|
111
|
+
chatId
|
|
112
|
+
defaultBotNickname
|
|
113
|
+
id
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
mutation SignupWithVerificationCodeMutation(
|
|
2
|
+
$verificationCode: String!
|
|
3
|
+
$emailAddress: String
|
|
4
|
+
$phoneNumber: String
|
|
5
|
+
) {
|
|
6
|
+
signupWithVerificationCode(
|
|
7
|
+
verificationCode: $verificationCode
|
|
8
|
+
emailAddress: $emailAddress
|
|
9
|
+
phoneNumber: $phoneNumber
|
|
10
|
+
) {
|
|
11
|
+
status
|
|
12
|
+
}
|
|
13
|
+
}
|