Skip to content

Commit 84fb2fc

Browse files
authored
Merge pull request #324 from iceljc/features/refine-chat-window
add instrucition log state search
2 parents 185bfaa + de05d88 commit 84fb2fc

File tree

13 files changed

+370
-49
lines changed

13 files changed

+370
-49
lines changed

package-lock.json

+245
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"moment": "^2.30.1",
5757
"overlayscrollbars": "^2.4.4",
5858
"overlayscrollbars-svelte": "^0.5.2",
59+
"qs": "^6.14.0",
5960
"svelte-awesome-color-picker": "^2.4.7",
6061
"svelte-collapse": "^0.1.2",
6162
"svelte-file-dropzone": "^2.0.2",

src/routes/page/conversation/state-search.svelte src/lib/common/StateSearch.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<!-- svelte-ignore a11y-no-static-element-interactions -->
6060
<i
6161
class="bx bx-no-entry text-danger clickable"
62-
class:hide={idx === 0}
62+
class:hide={states.length === 1}
6363
on:click={() => removeState(idx)}
6464
/>
6565
</div>

src/lib/helpers/types/instructTypes.js

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* @property {string[]?} [providers]
2424
* @property {string[]?} [models]
2525
* @property {string[]?} [templateNames]
26+
* @property {{key: string, value: string}[]?} [states]
2627
*/
2728

2829
/**
@@ -37,6 +38,7 @@
3738
* @property {string} user_message
3839
* @property {string?} [system_instruction]
3940
* @property {string} completion_text
41+
* @property {Object?} [states]
4042
* @property {Date} created_time
4143
*/
4244

src/lib/scss/app.scss

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ File: Main Css File
4545
@import "custom/components/text";
4646
@import "custom/components/multiselect";
4747
@import "custom/components/markdown";
48+
@import "custom/components/state";
4849

4950
// Plugins
5051
@import "custom/plugins/custom-scrollbar";
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.state-search-container {
2+
display: flex;
3+
flex-direction: column;
4+
gap: 10px;
5+
6+
.state-search-item {
7+
display: flex;
8+
gap: 10px;
9+
justify-content: flex-end;
10+
}
11+
}
12+
13+
.state-search-btn-wrapper {
14+
.state-search-btn {
15+
display: flex;
16+
justify-content: center;
17+
gap: 3px;
18+
flex-wrap: wrap;
19+
20+
@media (max-width: 800px) {
21+
.search-btn-text {
22+
display: none;
23+
}
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)