:zap: [Enhance] User interactions components
Browse files
apps/llm_mixer/index.html
CHANGED
@@ -36,7 +36,7 @@
|
|
36 |
id="openai-endpoint"
|
37 |
class="form-control"
|
38 |
rows="1"
|
39 |
-
placeholder="Endpoint"
|
40 |
></input>
|
41 |
</div>
|
42 |
<div class="col-auto px-0">
|
@@ -49,7 +49,7 @@
|
|
49 |
id="openai-api-key"
|
50 |
class="form-control"
|
51 |
rows="1"
|
52 |
-
placeholder="API Key"
|
53 |
></input>
|
54 |
</div>
|
55 |
<div class="col-auto px-0">
|
@@ -78,13 +78,6 @@
|
|
78 |
title="Temperature"
|
79 |
></select>
|
80 |
</div>
|
81 |
-
<!-- <div class="col pr-0">
|
82 |
-
<select
|
83 |
-
class="form-select"
|
84 |
-
id="chat-history-select"
|
85 |
-
title="Chat History"
|
86 |
-
></select>
|
87 |
-
</div> -->
|
88 |
</div>
|
89 |
<div class="mt-2 row no-gutters">
|
90 |
<div class="col-auto pl-3 pr-0">
|
|
|
36 |
id="openai-endpoint"
|
37 |
class="form-control"
|
38 |
rows="1"
|
39 |
+
placeholder="Input Endpoint URL, then click √"
|
40 |
></input>
|
41 |
</div>
|
42 |
<div class="col-auto px-0">
|
|
|
49 |
id="openai-api-key"
|
50 |
class="form-control"
|
51 |
rows="1"
|
52 |
+
placeholder="Input API Key, then click √"
|
53 |
></input>
|
54 |
</div>
|
55 |
<div class="col-auto px-0">
|
|
|
78 |
title="Temperature"
|
79 |
></select>
|
80 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
</div>
|
82 |
<div class="mt-2 row no-gutters">
|
83 |
<div class="col-auto pl-3 pr-0">
|
apps/llm_mixer/js/default.css
CHANGED
@@ -35,7 +35,7 @@
|
|
35 |
}
|
36 |
|
37 |
#available-models-select {
|
38 |
-
max-width: calc(100vw -
|
39 |
}
|
40 |
|
41 |
#temperature-select {
|
|
|
35 |
}
|
36 |
|
37 |
#available-models-select {
|
38 |
+
max-width: calc(100vw - 150px);
|
39 |
}
|
40 |
|
41 |
#temperature-select {
|
apps/llm_mixer/js/stream_jsonizer.js
CHANGED
@@ -14,6 +14,7 @@ export function jsonize_stream_data(data) {
|
|
14 |
return line.trim().length > 0;
|
15 |
})
|
16 |
.map(function (line) {
|
|
|
17 |
json_chunks.push(JSON.parse(line.trim()));
|
18 |
});
|
19 |
return json_chunks;
|
|
|
14 |
return line.trim().length > 0;
|
15 |
})
|
16 |
.map(function (line) {
|
17 |
+
console.log(line);
|
18 |
json_chunks.push(JSON.parse(line.trim()));
|
19 |
});
|
20 |
return json_chunks;
|