ninegrid2 6.556.0 → 6.558.0
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/dist/ai/aiSettings.js +23 -17
- package/dist/bundle.cjs.js +601 -597
- package/dist/bundle.esm.js +601 -597
- package/package.json +1 -1
- package/src/ai/aiSettings.js +23 -17
package/package.json
CHANGED
package/src/ai/aiSettings.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import ninegrid from "../index.js";
|
|
2
2
|
|
|
3
3
|
class aiSettings extends HTMLElement
|
|
4
4
|
{
|
|
@@ -64,8 +64,10 @@ class aiSettings extends HTMLElement
|
|
|
64
64
|
${ninegrid.getCustomPath(this,"ai.css")}
|
|
65
65
|
</style>
|
|
66
66
|
|
|
67
|
-
<div class="line">
|
|
67
|
+
<div class="line subject">
|
|
68
68
|
<label for="server">Server:</label>
|
|
69
|
+
</div>
|
|
70
|
+
<div class="line contents">
|
|
69
71
|
<label><input name="server" type="radio" value="gemini" checked>Gemini</label>
|
|
70
72
|
<label><input name="server" type="radio" value="openai">Open AI</label>
|
|
71
73
|
<label><input name="server" type="radio" value="ollama">Ollama</label>
|
|
@@ -76,12 +78,25 @@ class aiSettings extends HTMLElement
|
|
|
76
78
|
<div class="line openai-bak" style="display:none;">
|
|
77
79
|
<label>API Key: <input id="openaiApiKey" value="${this.openaiApiKey}"/></label>
|
|
78
80
|
</div>
|
|
79
|
-
<div class="line ollama">
|
|
80
|
-
<label
|
|
81
|
+
<div class="line subject ollama">
|
|
82
|
+
<label for="ollamaUrl">Server Url:</label>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="line contents ollama">
|
|
85
|
+
<input id="ollamaUrl" value="${this.ollamaUrl}"/></label>
|
|
86
|
+
</div>
|
|
87
|
+
<div class="line subject ollama">
|
|
88
|
+
<label for="ollamaModel">Model:</label>
|
|
89
|
+
</div>
|
|
90
|
+
<div class="line contents ollama">
|
|
91
|
+
<select id="ollamaModel">
|
|
92
|
+
<option value="phi4:14b">phi4:14b</option>
|
|
93
|
+
<option value="llama3.1:8b">llama3.1:8b</option>
|
|
94
|
+
<option value="mistral:7b">mistral:7b</option>
|
|
95
|
+
</select>
|
|
81
96
|
</div>
|
|
82
97
|
<div class="line gemini">
|
|
83
98
|
<label>
|
|
84
|
-
Model
|
|
99
|
+
Model:<br/>
|
|
85
100
|
<select id="geminiModel">
|
|
86
101
|
<option value="gemini-2.5-flash-preview-04-17">gemini-2.5-flash-preview-04-17</option>
|
|
87
102
|
<option value="gemini-pro">gemini-pro</option>
|
|
@@ -90,7 +105,7 @@ class aiSettings extends HTMLElement
|
|
|
90
105
|
</div>
|
|
91
106
|
<div class="line openai">
|
|
92
107
|
<label>
|
|
93
|
-
Model
|
|
108
|
+
Model:<br/>
|
|
94
109
|
<select id="openaiModel">
|
|
95
110
|
<option value="gpt-4">gpt-4</option>
|
|
96
111
|
<option value="gpt-4o">gpt-4o</option>
|
|
@@ -98,19 +113,10 @@ class aiSettings extends HTMLElement
|
|
|
98
113
|
</select>
|
|
99
114
|
</label>
|
|
100
115
|
</div>
|
|
101
|
-
|
|
102
|
-
<label>
|
|
103
|
-
Model:
|
|
104
|
-
<select id="ollamaModel">
|
|
105
|
-
<option value="phi4:14b">phi4:14b</option>
|
|
106
|
-
<option value="llama3.1:8b">llama3.1:8b</option>
|
|
107
|
-
<option value="mistral:7b">mistral:7b</option>
|
|
108
|
-
</select>
|
|
109
|
-
</label>
|
|
110
|
-
</div>
|
|
116
|
+
|
|
111
117
|
|
|
112
118
|
<div class="line qdrant">
|
|
113
|
-
<label>Url: <input id="qdrantUrl" value="${this.qdrantUrl}"/></label>
|
|
119
|
+
<label>Qdrant Url: <input id="qdrantUrl" value="${this.qdrantUrl}"/></label>
|
|
114
120
|
</div>
|
|
115
121
|
`;
|
|
116
122
|
|