llms-py 2.0.30__py3-none-any.whl → 2.0.32__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/llms.json +1091 -1088
- llms/main.py +6 -1
- llms/ui/App.mjs +1 -1
- llms/ui/ai.mjs +1 -1
- llms/ui/app.css +0 -118
- llms/ui/lib/servicestack-vue.mjs +9 -9
- {llms_py-2.0.30.dist-info → llms_py-2.0.32.dist-info}/METADATA +26 -3
- {llms_py-2.0.30.dist-info → llms_py-2.0.32.dist-info}/RECORD +12 -12
- {llms_py-2.0.30.dist-info → llms_py-2.0.32.dist-info}/WHEEL +0 -0
- {llms_py-2.0.30.dist-info → llms_py-2.0.32.dist-info}/entry_points.txt +0 -0
- {llms_py-2.0.30.dist-info → llms_py-2.0.32.dist-info}/licenses/LICENSE +0 -0
- {llms_py-2.0.30.dist-info → llms_py-2.0.32.dist-info}/top_level.txt +0 -0
llms/main.py
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
2
|
|
|
3
|
+
# Copyright (c) Demis Bellot, ServiceStack <https://servicestack.net>
|
|
4
|
+
# License: https://github.com/ServiceStack/llms/blob/main/LICENSE
|
|
5
|
+
|
|
3
6
|
# A lightweight CLI tool and OpenAI-compatible server for querying multiple Large Language Model (LLM) providers.
|
|
4
7
|
# Docs: https://github.com/ServiceStack/llms
|
|
5
8
|
|
|
@@ -31,7 +34,7 @@ try:
|
|
|
31
34
|
except ImportError:
|
|
32
35
|
HAS_PIL = False
|
|
33
36
|
|
|
34
|
-
VERSION = "2.0.
|
|
37
|
+
VERSION = "2.0.32"
|
|
35
38
|
_ROOT = None
|
|
36
39
|
g_config_path = None
|
|
37
40
|
g_ui_path = None
|
|
@@ -519,6 +522,8 @@ class OpenAiProvider:
|
|
|
519
522
|
chat = await process_chat(chat)
|
|
520
523
|
_log(f"POST {self.chat_url}")
|
|
521
524
|
_log(chat_summary(chat))
|
|
525
|
+
# remove metadata if any (conflicts with some providers, e.g. Z.ai)
|
|
526
|
+
chat.pop('metadata', None)
|
|
522
527
|
|
|
523
528
|
async with aiohttp.ClientSession() as session:
|
|
524
529
|
started_at = time.time()
|
llms/ui/App.mjs
CHANGED
|
@@ -50,7 +50,7 @@ export default {
|
|
|
50
50
|
<div
|
|
51
51
|
v-if="isMobile && ai.isSidebarOpen && !(ai.requiresAuth && !ai.auth)"
|
|
52
52
|
@click="closeSidebar"
|
|
53
|
-
class="fixed inset-0 bg-black
|
|
53
|
+
class="fixed inset-0 bg-black/50 z-40 lg:hidden"
|
|
54
54
|
></div>
|
|
55
55
|
|
|
56
56
|
<!-- Sidebar (hidden when auth required and not authenticated) -->
|
llms/ui/ai.mjs
CHANGED
llms/ui/app.css
CHANGED
|
@@ -350,12 +350,6 @@
|
|
|
350
350
|
.top-4 {
|
|
351
351
|
top: calc(var(--spacing) * 4);
|
|
352
352
|
}
|
|
353
|
-
.top-12 {
|
|
354
|
-
top: calc(var(--spacing) * 12);
|
|
355
|
-
}
|
|
356
|
-
.top-16 {
|
|
357
|
-
top: calc(var(--spacing) * 16);
|
|
358
|
-
}
|
|
359
353
|
.right-0 {
|
|
360
354
|
right: calc(var(--spacing) * 0);
|
|
361
355
|
}
|
|
@@ -368,9 +362,6 @@
|
|
|
368
362
|
.left-0 {
|
|
369
363
|
left: calc(var(--spacing) * 0);
|
|
370
364
|
}
|
|
371
|
-
.left-4 {
|
|
372
|
-
left: calc(var(--spacing) * 4);
|
|
373
|
-
}
|
|
374
365
|
.left-full {
|
|
375
366
|
left: 100%;
|
|
376
367
|
}
|
|
@@ -383,9 +374,6 @@
|
|
|
383
374
|
.z-20 {
|
|
384
375
|
z-index: 20;
|
|
385
376
|
}
|
|
386
|
-
.z-30 {
|
|
387
|
-
z-index: 30;
|
|
388
|
-
}
|
|
389
377
|
.z-40 {
|
|
390
378
|
z-index: 40;
|
|
391
379
|
}
|
|
@@ -419,15 +407,9 @@
|
|
|
419
407
|
max-width: 96rem;
|
|
420
408
|
}
|
|
421
409
|
}
|
|
422
|
-
.-m-2 {
|
|
423
|
-
margin: calc(var(--spacing) * -2);
|
|
424
|
-
}
|
|
425
410
|
.-m-2\.5 {
|
|
426
411
|
margin: calc(var(--spacing) * -2.5);
|
|
427
412
|
}
|
|
428
|
-
.-mx-1 {
|
|
429
|
-
margin-inline: calc(var(--spacing) * -1);
|
|
430
|
-
}
|
|
431
413
|
.-mx-1\.5 {
|
|
432
414
|
margin-inline: calc(var(--spacing) * -1.5);
|
|
433
415
|
}
|
|
@@ -440,9 +422,6 @@
|
|
|
440
422
|
.mx-auto {
|
|
441
423
|
margin-inline: auto;
|
|
442
424
|
}
|
|
443
|
-
.-my-1 {
|
|
444
|
-
margin-block: calc(var(--spacing) * -1);
|
|
445
|
-
}
|
|
446
425
|
.-my-1\.5 {
|
|
447
426
|
margin-block: calc(var(--spacing) * -1.5);
|
|
448
427
|
}
|
|
@@ -518,9 +497,6 @@
|
|
|
518
497
|
.-ml-px {
|
|
519
498
|
margin-left: -1px;
|
|
520
499
|
}
|
|
521
|
-
.ml-0 {
|
|
522
|
-
margin-left: calc(var(--spacing) * 0);
|
|
523
|
-
}
|
|
524
500
|
.ml-0\.5 {
|
|
525
501
|
margin-left: calc(var(--spacing) * 0.5);
|
|
526
502
|
}
|
|
@@ -754,9 +730,6 @@
|
|
|
754
730
|
.min-w-0 {
|
|
755
731
|
min-width: calc(var(--spacing) * 0);
|
|
756
732
|
}
|
|
757
|
-
.min-w-2 {
|
|
758
|
-
min-width: calc(var(--spacing) * 2);
|
|
759
|
-
}
|
|
760
733
|
.min-w-6 {
|
|
761
734
|
min-width: calc(var(--spacing) * 6);
|
|
762
735
|
}
|
|
@@ -923,13 +896,6 @@
|
|
|
923
896
|
margin-block-end: calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)));
|
|
924
897
|
}
|
|
925
898
|
}
|
|
926
|
-
.space-y-2 {
|
|
927
|
-
:where(& > :not(:last-child)) {
|
|
928
|
-
--tw-space-y-reverse: 0;
|
|
929
|
-
margin-block-start: calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));
|
|
930
|
-
margin-block-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)));
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
899
|
.space-y-4 {
|
|
934
900
|
:where(& > :not(:last-child)) {
|
|
935
901
|
--tw-space-y-reverse: 0;
|
|
@@ -1151,9 +1117,6 @@
|
|
|
1151
1117
|
.border-yellow-400 {
|
|
1152
1118
|
border-color: var(--color-yellow-400);
|
|
1153
1119
|
}
|
|
1154
|
-
.bg-black {
|
|
1155
|
-
background-color: var(--color-black);
|
|
1156
|
-
}
|
|
1157
1120
|
.bg-black\/40 {
|
|
1158
1121
|
background-color: color-mix(in srgb, #000 40%, transparent);
|
|
1159
1122
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -1194,9 +1157,6 @@
|
|
|
1194
1157
|
.bg-gray-400 {
|
|
1195
1158
|
background-color: var(--color-gray-400);
|
|
1196
1159
|
}
|
|
1197
|
-
.bg-gray-500 {
|
|
1198
|
-
background-color: var(--color-gray-500);
|
|
1199
|
-
}
|
|
1200
1160
|
.bg-gray-500\/75 {
|
|
1201
1161
|
background-color: color-mix(in srgb, oklch(55.1% 0.027 264.364) 75%, transparent);
|
|
1202
1162
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -1211,9 +1171,6 @@
|
|
|
1211
1171
|
.bg-gray-700 {
|
|
1212
1172
|
background-color: var(--color-gray-700);
|
|
1213
1173
|
}
|
|
1214
|
-
.bg-gray-900 {
|
|
1215
|
-
background-color: var(--color-gray-900);
|
|
1216
|
-
}
|
|
1217
1174
|
.bg-gray-900\/80 {
|
|
1218
1175
|
background-color: color-mix(in srgb, oklch(21% 0.034 264.665) 80%, transparent);
|
|
1219
1176
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -1264,9 +1221,6 @@
|
|
|
1264
1221
|
.bg-sky-600 {
|
|
1265
1222
|
background-color: var(--color-sky-600);
|
|
1266
1223
|
}
|
|
1267
|
-
.bg-slate-400 {
|
|
1268
|
-
background-color: var(--color-slate-400);
|
|
1269
|
-
}
|
|
1270
1224
|
.bg-slate-400\/10 {
|
|
1271
1225
|
background-color: color-mix(in srgb, oklch(70.4% 0.04 256.788) 10%, transparent);
|
|
1272
1226
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -1305,9 +1259,6 @@
|
|
|
1305
1259
|
.p-2\.5 {
|
|
1306
1260
|
padding: calc(var(--spacing) * 2.5);
|
|
1307
1261
|
}
|
|
1308
|
-
.p-3 {
|
|
1309
|
-
padding: calc(var(--spacing) * 3);
|
|
1310
|
-
}
|
|
1311
1262
|
.p-4 {
|
|
1312
1263
|
padding: calc(var(--spacing) * 4);
|
|
1313
1264
|
}
|
|
@@ -1332,9 +1283,6 @@
|
|
|
1332
1283
|
.px-6 {
|
|
1333
1284
|
padding-inline: calc(var(--spacing) * 6);
|
|
1334
1285
|
}
|
|
1335
|
-
.py-0 {
|
|
1336
|
-
padding-block: calc(var(--spacing) * 0);
|
|
1337
|
-
}
|
|
1338
1286
|
.py-0\.5 {
|
|
1339
1287
|
padding-block: calc(var(--spacing) * 0.5);
|
|
1340
1288
|
}
|
|
@@ -1365,9 +1313,6 @@
|
|
|
1365
1313
|
.py-12 {
|
|
1366
1314
|
padding-block: calc(var(--spacing) * 12);
|
|
1367
1315
|
}
|
|
1368
|
-
.pt-0 {
|
|
1369
|
-
padding-top: calc(var(--spacing) * 0);
|
|
1370
|
-
}
|
|
1371
1316
|
.pt-0\.5 {
|
|
1372
1317
|
padding-top: calc(var(--spacing) * 0.5);
|
|
1373
1318
|
}
|
|
@@ -1689,9 +1634,6 @@
|
|
|
1689
1634
|
.uppercase {
|
|
1690
1635
|
text-transform: uppercase;
|
|
1691
1636
|
}
|
|
1692
|
-
.underline {
|
|
1693
|
-
text-decoration-line: underline;
|
|
1694
|
-
}
|
|
1695
1637
|
.placeholder-gray-500 {
|
|
1696
1638
|
&::placeholder {
|
|
1697
1639
|
color: var(--color-gray-500);
|
|
@@ -1753,9 +1695,6 @@
|
|
|
1753
1695
|
--tw-inset-ring-shadow: inset 0 0 0 1px var(--tw-inset-ring-color, currentcolor);
|
|
1754
1696
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1755
1697
|
}
|
|
1756
|
-
.ring-black {
|
|
1757
|
-
--tw-ring-color: var(--color-black);
|
|
1758
|
-
}
|
|
1759
1698
|
.ring-black\/5 {
|
|
1760
1699
|
--tw-ring-color: color-mix(in srgb, #000 5%, transparent);
|
|
1761
1700
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -1770,9 +1709,6 @@
|
|
|
1770
1709
|
.ring-indigo-500 {
|
|
1771
1710
|
--tw-ring-color: var(--color-indigo-500);
|
|
1772
1711
|
}
|
|
1773
|
-
.inset-ring-gray-900 {
|
|
1774
|
-
--tw-inset-ring-color: var(--color-gray-900);
|
|
1775
|
-
}
|
|
1776
1712
|
.inset-ring-gray-900\/5 {
|
|
1777
1713
|
--tw-inset-ring-color: color-mix(in srgb, oklch(21% 0.034 264.665) 5%, transparent);
|
|
1778
1714
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -1903,13 +1839,6 @@
|
|
|
1903
1839
|
}
|
|
1904
1840
|
}
|
|
1905
1841
|
}
|
|
1906
|
-
.group-hover\:opacity-0 {
|
|
1907
|
-
&:is(:where(.group):hover *) {
|
|
1908
|
-
@media (hover: hover) {
|
|
1909
|
-
opacity: 0%;
|
|
1910
|
-
}
|
|
1911
|
-
}
|
|
1912
|
-
}
|
|
1913
1842
|
.group-hover\:opacity-100 {
|
|
1914
1843
|
&:is(:where(.group):hover *) {
|
|
1915
1844
|
@media (hover: hover) {
|
|
@@ -2788,11 +2717,6 @@
|
|
|
2788
2717
|
flex-direction: row-reverse;
|
|
2789
2718
|
}
|
|
2790
2719
|
}
|
|
2791
|
-
.sm\:flex-wrap {
|
|
2792
|
-
@media (width >= 40rem) {
|
|
2793
|
-
flex-wrap: wrap;
|
|
2794
|
-
}
|
|
2795
|
-
}
|
|
2796
2720
|
.sm\:items-center {
|
|
2797
2721
|
@media (width >= 40rem) {
|
|
2798
2722
|
align-items: center;
|
|
@@ -2892,21 +2816,11 @@
|
|
|
2892
2816
|
transition-duration: 700ms;
|
|
2893
2817
|
}
|
|
2894
2818
|
}
|
|
2895
|
-
.md\:relative {
|
|
2896
|
-
@media (width >= 48rem) {
|
|
2897
|
-
position: relative;
|
|
2898
|
-
}
|
|
2899
|
-
}
|
|
2900
2819
|
.md\:flex {
|
|
2901
2820
|
@media (width >= 48rem) {
|
|
2902
2821
|
display: flex;
|
|
2903
2822
|
}
|
|
2904
2823
|
}
|
|
2905
|
-
.md\:hidden {
|
|
2906
|
-
@media (width >= 48rem) {
|
|
2907
|
-
display: none;
|
|
2908
|
-
}
|
|
2909
|
-
}
|
|
2910
2824
|
.md\:inline {
|
|
2911
2825
|
@media (width >= 48rem) {
|
|
2912
2826
|
display: inline;
|
|
@@ -2922,12 +2836,6 @@
|
|
|
2922
2836
|
max-width: var(--container-xl);
|
|
2923
2837
|
}
|
|
2924
2838
|
}
|
|
2925
|
-
.md\:translate-x-0 {
|
|
2926
|
-
@media (width >= 48rem) {
|
|
2927
|
-
--tw-translate-x: calc(var(--spacing) * 0);
|
|
2928
|
-
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
2929
|
-
}
|
|
2930
|
-
}
|
|
2931
2839
|
.md\:grid-cols-2 {
|
|
2932
2840
|
@media (width >= 48rem) {
|
|
2933
2841
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
@@ -2938,11 +2846,6 @@
|
|
|
2938
2846
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
2939
2847
|
}
|
|
2940
2848
|
}
|
|
2941
|
-
.md\:grid-cols-5 {
|
|
2942
|
-
@media (width >= 48rem) {
|
|
2943
|
-
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
2944
|
-
}
|
|
2945
|
-
}
|
|
2946
2849
|
.md\:rounded-lg {
|
|
2947
2850
|
@media (width >= 48rem) {
|
|
2948
2851
|
border-radius: var(--radius-lg);
|
|
@@ -2983,11 +2886,6 @@
|
|
|
2983
2886
|
display: none;
|
|
2984
2887
|
}
|
|
2985
2888
|
}
|
|
2986
|
-
.lg\:inline {
|
|
2987
|
-
@media (width >= 64rem) {
|
|
2988
|
-
display: inline;
|
|
2989
|
-
}
|
|
2990
|
-
}
|
|
2991
2889
|
.lg\:table-cell {
|
|
2992
2890
|
@media (width >= 64rem) {
|
|
2993
2891
|
display: table-cell;
|
|
@@ -2998,11 +2896,6 @@
|
|
|
2998
2896
|
width: calc(var(--spacing) * 72);
|
|
2999
2897
|
}
|
|
3000
2898
|
}
|
|
3001
|
-
.lg\:w-84 {
|
|
3002
|
-
@media (width >= 64rem) {
|
|
3003
|
-
width: calc(var(--spacing) * 84);
|
|
3004
|
-
}
|
|
3005
|
-
}
|
|
3006
2899
|
.lg\:w-auto {
|
|
3007
2900
|
@media (width >= 64rem) {
|
|
3008
2901
|
width: auto;
|
|
@@ -3018,12 +2911,6 @@
|
|
|
3018
2911
|
flex: 0 auto;
|
|
3019
2912
|
}
|
|
3020
2913
|
}
|
|
3021
|
-
.lg\:translate-x-0 {
|
|
3022
|
-
@media (width >= 64rem) {
|
|
3023
|
-
--tw-translate-x: calc(var(--spacing) * 0);
|
|
3024
|
-
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
3025
|
-
}
|
|
3026
|
-
}
|
|
3027
2914
|
.lg\:grid-cols-2 {
|
|
3028
2915
|
@media (width >= 64rem) {
|
|
3029
2916
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
@@ -3084,11 +2971,6 @@
|
|
|
3084
2971
|
max-width: var(--container-3xl);
|
|
3085
2972
|
}
|
|
3086
2973
|
}
|
|
3087
|
-
.xl\:max-w-68 {
|
|
3088
|
-
@media (width >= 80rem) {
|
|
3089
|
-
max-width: calc(var(--spacing) * 68);
|
|
3090
|
-
}
|
|
3091
|
-
}
|
|
3092
2974
|
.xl\:max-w-72 {
|
|
3093
2975
|
@media (width >= 80rem) {
|
|
3094
2976
|
max-width: calc(var(--spacing) * 72);
|