llms-py 3.0.0b6__py3-none-any.whl → 3.0.0b7__py3-none-any.whl
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.
- llms/__pycache__/main.cpython-314.pyc +0 -0
- llms/{ui/modules/analytics.mjs → extensions/analytics/ui/index.mjs} +4 -2
- llms/extensions/core_tools/__init__.py +358 -0
- llms/extensions/core_tools/__pycache__/__init__.cpython-314.pyc +0 -0
- llms/extensions/gallery/__init__.py +61 -0
- llms/extensions/gallery/__pycache__/__init__.cpython-314.pyc +0 -0
- llms/extensions/gallery/__pycache__/db.cpython-314.pyc +0 -0
- llms/extensions/gallery/db.py +298 -0
- llms/extensions/gallery/ui/index.mjs +480 -0
- llms/extensions/providers/__init__.py +18 -0
- llms/extensions/providers/__pycache__/__init__.cpython-314.pyc +0 -0
- llms/{providers → extensions/providers}/__pycache__/anthropic.cpython-314.pyc +0 -0
- llms/extensions/providers/__pycache__/chutes.cpython-314.pyc +0 -0
- llms/extensions/providers/__pycache__/google.cpython-314.pyc +0 -0
- llms/{providers → extensions/providers}/__pycache__/nvidia.cpython-314.pyc +0 -0
- llms/{providers → extensions/providers}/__pycache__/openai.cpython-314.pyc +0 -0
- llms/extensions/providers/__pycache__/openrouter.cpython-314.pyc +0 -0
- llms/{providers → extensions/providers}/anthropic.py +1 -4
- llms/{providers → extensions/providers}/chutes.py +21 -18
- llms/{providers → extensions/providers}/google.py +99 -27
- llms/{providers → extensions/providers}/nvidia.py +6 -8
- llms/{providers → extensions/providers}/openai.py +3 -6
- llms/{providers → extensions/providers}/openrouter.py +12 -10
- llms/extensions/system_prompts/__init__.py +45 -0
- llms/extensions/system_prompts/__pycache__/__init__.cpython-314.pyc +0 -0
- llms/extensions/system_prompts/ui/index.mjs +284 -0
- llms/extensions/system_prompts/ui/prompts.json +1067 -0
- llms/{ui/modules/tools.mjs → extensions/tools/ui/index.mjs} +4 -2
- llms/llms.json +17 -1
- llms/main.py +381 -170
- llms/providers-extra.json +0 -32
- llms/ui/App.mjs +17 -18
- llms/ui/ai.mjs +10 -3
- llms/ui/app.css +1553 -24
- llms/ui/ctx.mjs +70 -12
- llms/ui/index.mjs +13 -8
- llms/ui/modules/chat/ChatBody.mjs +11 -248
- llms/ui/modules/chat/HomeTools.mjs +254 -0
- llms/ui/modules/chat/SettingsDialog.mjs +1 -1
- llms/ui/modules/chat/index.mjs +278 -174
- llms/ui/modules/layout.mjs +2 -26
- llms/ui/modules/model-selector.mjs +1 -1
- llms/ui/modules/threads/index.mjs +5 -11
- llms/ui/modules/threads/threadStore.mjs +56 -2
- llms/ui/utils.mjs +21 -3
- {llms_py-3.0.0b6.dist-info → llms_py-3.0.0b7.dist-info}/METADATA +1 -1
- llms_py-3.0.0b7.dist-info/RECORD +80 -0
- llms/providers/__pycache__/chutes.cpython-314.pyc +0 -0
- llms/providers/__pycache__/google.cpython-314.pyc +0 -0
- llms/providers/__pycache__/openrouter.cpython-314.pyc +0 -0
- llms_py-3.0.0b6.dist-info/RECORD +0 -66
- {llms_py-3.0.0b6.dist-info → llms_py-3.0.0b7.dist-info}/WHEEL +0 -0
- {llms_py-3.0.0b6.dist-info → llms_py-3.0.0b7.dist-info}/entry_points.txt +0 -0
- {llms_py-3.0.0b6.dist-info → llms_py-3.0.0b7.dist-info}/licenses/LICENSE +0 -0
- {llms_py-3.0.0b6.dist-info → llms_py-3.0.0b7.dist-info}/top_level.txt +0 -0
llms/providers-extra.json
CHANGED
|
@@ -1,36 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"minimax": {
|
|
3
|
-
"models": {
|
|
4
|
-
"MiniMax-M2.1": {
|
|
5
|
-
"id": "MiniMax-M2.1",
|
|
6
|
-
"name": "MiniMax M2.1",
|
|
7
|
-
"family": "minimax",
|
|
8
|
-
"attachment": false,
|
|
9
|
-
"reasoning": true,
|
|
10
|
-
"tool_call": true,
|
|
11
|
-
"temperature": true,
|
|
12
|
-
"release_date": "2025-12-23",
|
|
13
|
-
"last_updated": "2025-12-23",
|
|
14
|
-
"modalities": {
|
|
15
|
-
"input": [
|
|
16
|
-
"text"
|
|
17
|
-
],
|
|
18
|
-
"output": [
|
|
19
|
-
"text"
|
|
20
|
-
]
|
|
21
|
-
},
|
|
22
|
-
"open_weights": true,
|
|
23
|
-
"cost": {
|
|
24
|
-
"input": 0.3,
|
|
25
|
-
"output": 1.2
|
|
26
|
-
},
|
|
27
|
-
"limit": {
|
|
28
|
-
"context": 204800,
|
|
29
|
-
"output": 128000
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
2
|
"openrouter": {
|
|
35
3
|
"models": {
|
|
36
4
|
"google/gemini-2.5-flash-image": {
|
llms/ui/App.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { AppContext } from "./ctx.mjs"
|
|
|
5
5
|
// Vertical Sidebar Icons
|
|
6
6
|
const LeftBar = {
|
|
7
7
|
template: `
|
|
8
|
-
<div class="flex flex-col space-y-2 pt-2.5 px-1">
|
|
8
|
+
<div class="select-none flex flex-col space-y-2 pt-2.5 px-1">
|
|
9
9
|
<div v-for="(icon, id) in $ctx.left" :key="id" class="relative flex items-center justify-center">
|
|
10
10
|
<component :is="icon.component"
|
|
11
11
|
class="size-7 p-1 cursor-pointer text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 rounded block"
|
|
@@ -31,7 +31,7 @@ const LeftBar = {
|
|
|
31
31
|
const LeftPanel = {
|
|
32
32
|
template: `
|
|
33
33
|
<div v-if="component" class="flex flex-col h-full border-r border-gray-200 dark:border-gray-700">
|
|
34
|
-
<button type="button"
|
|
34
|
+
<button type="button" class="absolute top-2 right-2 p-1 rounded-md text-gray-500 hover:bg-gray-100 dark:hover:bg-gray-700 lg:hidden z-20">
|
|
35
35
|
<svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>
|
|
36
36
|
</button>
|
|
37
37
|
<component :is="component" />
|
|
@@ -49,11 +49,11 @@ const LeftPanel = {
|
|
|
49
49
|
|
|
50
50
|
const TopBar = {
|
|
51
51
|
template: `
|
|
52
|
-
<div class="flex space-x-1">
|
|
52
|
+
<div class="select-none flex space-x-1">
|
|
53
53
|
<div v-for="(icon, id) in $ctx.top" :key="id" class="relative flex items-center justify-center">
|
|
54
54
|
<component :is="icon.component"
|
|
55
|
-
class="size-7 p-1 cursor-pointer text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 block"
|
|
56
|
-
:class="{ 'bg-gray-100 dark:bg-gray-800 border
|
|
55
|
+
class="size-7 p-1 cursor-pointer text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 block border border-transparent"
|
|
56
|
+
:class="{ 'bg-gray-100 dark:bg-gray-800 border-gray-300 dark:border-gray-600 rounded' : icon.isActive({ ...$layout }) }"
|
|
57
57
|
@mouseenter="tooltip = icon.id"
|
|
58
58
|
@mouseleave="tooltip = ''"
|
|
59
59
|
/>
|
|
@@ -147,15 +147,15 @@ export default {
|
|
|
147
147
|
template: `
|
|
148
148
|
<div class="flex h-screen">
|
|
149
149
|
<!-- Mobile Overlay -->
|
|
150
|
-
<div
|
|
150
|
+
<div v-if="$ai.hasAccess"
|
|
151
151
|
v-if="isMobile && $ctx.layoutVisible('left') && $ai.hasAccess"
|
|
152
152
|
@click="$ctx.toggleLayout('left')"
|
|
153
|
-
class="fixed inset-0 bg-black/50 z-40 lg:hidden"
|
|
153
|
+
:class="$ctx.cls('mobile-overlay', 'fixed inset-0 bg-black/50 z-40 lg:hidden')"
|
|
154
154
|
></div>
|
|
155
155
|
|
|
156
|
-
<div id="sidebar" class="z-100 relative flex bg-gray-50 dark:bg-gray-800">
|
|
157
|
-
<LeftBar />
|
|
158
|
-
<LeftPanel
|
|
156
|
+
<div v-if="$ai.hasAccess" id="sidebar" :class="$ctx.cls('sidebar', 'z-100 relative flex bg-gray-50 dark:bg-gray-800')">
|
|
157
|
+
<LeftBar id="left-bar" />
|
|
158
|
+
<LeftPanel id="left-panel"
|
|
159
159
|
v-if="$ai.hasAccess && $ctx.layoutVisible('left')"
|
|
160
160
|
:class="[
|
|
161
161
|
'transition-transform duration-300 ease-in-out z-50',
|
|
@@ -164,27 +164,26 @@ export default {
|
|
|
164
164
|
'fixed inset-y-0 left-[2.25rem] lg:left-0',
|
|
165
165
|
'bg-gray-50 dark:bg-gray-800'
|
|
166
166
|
]"
|
|
167
|
-
@thread-selected="$ctx.toggleLayout('left',false)" @toggle-sidebar="$ctx.toggleLayout('left')"
|
|
168
167
|
/>
|
|
169
168
|
</div>
|
|
170
169
|
|
|
171
170
|
<!-- Main Area -->
|
|
172
|
-
<div class="flex-1 flex flex-col">
|
|
173
|
-
<div class="flex flex-col h-full w-full overflow-hidden">
|
|
174
|
-
<div class="py-1 pr-1 flex items-center justify-between shrink-0">
|
|
171
|
+
<div id="main" :class="$ctx.cls('main', 'flex-1 flex flex-col')">
|
|
172
|
+
<div id="main-inner" :class="$ctx.cls('main-inner', 'flex flex-col h-full w-full overflow-hidden')">
|
|
173
|
+
<div v-if="$ai.hasAccess" id="header" :class="$ctx.cls('header', 'py-1 pr-1 flex items-center justify-between shrink-0')">
|
|
175
174
|
<div>
|
|
176
175
|
<ModelSelector :models="$state.models" v-model="$state.selectedModel" />
|
|
177
176
|
</div>
|
|
178
|
-
<TopBar />
|
|
177
|
+
<TopBar id="top-bar" />
|
|
179
178
|
</div>
|
|
180
|
-
<TopPanel class="shrink-0" />
|
|
181
|
-
<div class="flex-1 overflow-y-auto min-h-0 flex flex-col">
|
|
179
|
+
<TopPanel v-if="$ai.hasAccess" id="top-panel" :class="$ctx.cls('top-panel', 'shrink-0')" />
|
|
180
|
+
<div id="page" :class="$ctx.cls('page', 'flex-1 overflow-y-auto min-h-0 flex flex-col')">
|
|
182
181
|
<RouterView class="h-full" />
|
|
183
182
|
</div>
|
|
184
183
|
</div>
|
|
185
184
|
</div>
|
|
186
185
|
|
|
187
|
-
<component v-if="modal" :is="modal" class="!z-[200]" @done="closeModal" />
|
|
186
|
+
<component v-if="modal" :is="modal" :class="$ctx.cls('modal', '!z-[200]')" @done="closeModal" />
|
|
188
187
|
</div>
|
|
189
188
|
`,
|
|
190
189
|
}
|
llms/ui/ai.mjs
CHANGED
|
@@ -5,7 +5,7 @@ const headers = { 'Accept': 'application/json' }
|
|
|
5
5
|
const prefsKey = 'llms.prefs'
|
|
6
6
|
|
|
7
7
|
export const o = {
|
|
8
|
-
version: '3.0.
|
|
8
|
+
version: '3.0.0b7',
|
|
9
9
|
base,
|
|
10
10
|
prefsKey,
|
|
11
11
|
welcome: 'Welcome to llms.py',
|
|
@@ -40,13 +40,20 @@ export const o = {
|
|
|
40
40
|
return { responseStatus: { errorCode: 'Error', message: `GET failed: ${e.message ?? e}` } }
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
post(url, options) {
|
|
44
|
-
return fetch(this.resolveUrl(url), {
|
|
43
|
+
async post(url, options) {
|
|
44
|
+
return await fetch(this.resolveUrl(url), {
|
|
45
45
|
method: 'POST',
|
|
46
46
|
...options,
|
|
47
47
|
headers: Object.assign({ 'Content-Type': 'application/json' }, this.headers, options?.headers),
|
|
48
48
|
})
|
|
49
49
|
},
|
|
50
|
+
async postForm(url, options) {
|
|
51
|
+
return await fetch(this.resolveUrl(url), {
|
|
52
|
+
method: 'POST',
|
|
53
|
+
...options,
|
|
54
|
+
headers: Object.assign({}, options?.headers),
|
|
55
|
+
})
|
|
56
|
+
},
|
|
50
57
|
async postJson(url, options) {
|
|
51
58
|
const res = await this.post(url, options)
|
|
52
59
|
let txt = ''
|