prompture 0.0.42.dev2__py3-none-any.whl → 0.0.43__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.
- prompture/_version.py +2 -2
- prompture/discovery.py +20 -0
- {prompture-0.0.42.dev2.dist-info → prompture-0.0.43.dist-info}/METADATA +1 -1
- {prompture-0.0.42.dev2.dist-info → prompture-0.0.43.dist-info}/RECORD +8 -8
- {prompture-0.0.42.dev2.dist-info → prompture-0.0.43.dist-info}/WHEEL +0 -0
- {prompture-0.0.42.dev2.dist-info → prompture-0.0.43.dist-info}/entry_points.txt +0 -0
- {prompture-0.0.42.dev2.dist-info → prompture-0.0.43.dist-info}/licenses/LICENSE +0 -0
- {prompture-0.0.42.dev2.dist-info → prompture-0.0.43.dist-info}/top_level.txt +0 -0
prompture/_version.py
CHANGED
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '0.0.
|
|
32
|
-
__version_tuple__ = version_tuple = (0, 0,
|
|
31
|
+
__version__ = version = '0.0.43'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 0, 43)
|
|
33
33
|
|
|
34
34
|
__commit_id__ = commit_id = None
|
prompture/discovery.py
CHANGED
|
@@ -10,6 +10,7 @@ from typing import Any, overload
|
|
|
10
10
|
import requests
|
|
11
11
|
|
|
12
12
|
from .drivers import (
|
|
13
|
+
AirLLMDriver,
|
|
13
14
|
AzureDriver,
|
|
14
15
|
ClaudeDriver,
|
|
15
16
|
GoogleDriver,
|
|
@@ -17,9 +18,12 @@ from .drivers import (
|
|
|
17
18
|
GroqDriver,
|
|
18
19
|
LMStudioDriver,
|
|
19
20
|
LocalHTTPDriver,
|
|
21
|
+
ModelScopeDriver,
|
|
22
|
+
MoonshotDriver,
|
|
20
23
|
OllamaDriver,
|
|
21
24
|
OpenAIDriver,
|
|
22
25
|
OpenRouterDriver,
|
|
26
|
+
ZaiDriver,
|
|
23
27
|
)
|
|
24
28
|
from .settings import settings
|
|
25
29
|
|
|
@@ -71,6 +75,10 @@ def get_available_models(
|
|
|
71
75
|
"ollama": OllamaDriver,
|
|
72
76
|
"lmstudio": LMStudioDriver,
|
|
73
77
|
"local_http": LocalHTTPDriver,
|
|
78
|
+
"moonshot": MoonshotDriver,
|
|
79
|
+
"zai": ZaiDriver,
|
|
80
|
+
"modelscope": ModelScopeDriver,
|
|
81
|
+
"airllm": AirLLMDriver,
|
|
74
82
|
}
|
|
75
83
|
|
|
76
84
|
for provider, driver_cls in provider_classes.items():
|
|
@@ -102,6 +110,18 @@ def get_available_models(
|
|
|
102
110
|
elif provider == "grok":
|
|
103
111
|
if settings.grok_api_key or os.getenv("GROK_API_KEY"):
|
|
104
112
|
is_configured = True
|
|
113
|
+
elif provider == "moonshot":
|
|
114
|
+
if settings.moonshot_api_key or os.getenv("MOONSHOT_API_KEY"):
|
|
115
|
+
is_configured = True
|
|
116
|
+
elif provider == "zai":
|
|
117
|
+
if settings.zhipu_api_key or os.getenv("ZHIPU_API_KEY"):
|
|
118
|
+
is_configured = True
|
|
119
|
+
elif provider == "modelscope":
|
|
120
|
+
if settings.modelscope_api_key or os.getenv("MODELSCOPE_API_KEY"):
|
|
121
|
+
is_configured = True
|
|
122
|
+
elif provider == "airllm":
|
|
123
|
+
# AirLLM runs locally, always considered configured
|
|
124
|
+
is_configured = True
|
|
105
125
|
elif (
|
|
106
126
|
provider == "ollama"
|
|
107
127
|
or provider == "lmstudio"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
prompture/__init__.py,sha256=cJnkefDpiyFbU77juw4tXPdKJQWoJ-c6XBFt2v-e5Q4,7455
|
|
2
|
-
prompture/_version.py,sha256=
|
|
2
|
+
prompture/_version.py,sha256=qJphZkKjg5qeGMzBrtqKwyJZQtcx3oaEh-0t6ejMuVo,706
|
|
3
3
|
prompture/agent.py,sha256=-8qdo_Lz20GGssCe5B_QPxb5Kct71YtKHh5vZgrSYik,34748
|
|
4
4
|
prompture/agent_types.py,sha256=Icl16PQI-ThGLMFCU43adtQA6cqETbsPn4KssKBI4xc,4664
|
|
5
5
|
prompture/async_agent.py,sha256=_6_IRb-LGzZxGxfPVy43SIWByUoQfN-5XnUWahVP6r8,33110
|
|
@@ -13,7 +13,7 @@ prompture/cli.py,sha256=tNiIddRmgC1BomjY5O1VVVAwvqHVzF8IHmQrM-cG2wQ,2902
|
|
|
13
13
|
prompture/conversation.py,sha256=kBflwh7Qmw1I_jcUGyV36oskdVz4SYDSw_dCjemRRRc,32756
|
|
14
14
|
prompture/core.py,sha256=5FHwX7fNPwFHMbFCMvV-RH7LpPpTToLAmcyDnKbrN0E,57202
|
|
15
15
|
prompture/cost_mixin.py,sha256=Qx7gPgPsWgTHiaFeI7q_p9cfe95ccjgN8Mi56d_AVX0,4563
|
|
16
|
-
prompture/discovery.py,sha256=
|
|
16
|
+
prompture/discovery.py,sha256=K-svbO-qJraHinCbFVS64vEo5McWX5pURv26ZMmuL6U,10295
|
|
17
17
|
prompture/driver.py,sha256=wE7K3vnqeCVT5pEEBP-3uZ6e-YyU6TXtnEKRSB25eOc,10410
|
|
18
18
|
prompture/field_definitions.py,sha256=PLvxq2ot-ngJ8JbWkkZ-XLtM1wvjUQ3TL01vSEo-a6E,21368
|
|
19
19
|
prompture/group_types.py,sha256=BxeFV1tI4PTH3xPOie7q3-35ivkTdB9lJUPLH0kPH7A,4731
|
|
@@ -76,9 +76,9 @@ prompture/scaffold/templates/env.example.j2,sha256=eESKr1KWgyrczO6d-nwAhQwSpf_G-
|
|
|
76
76
|
prompture/scaffold/templates/main.py.j2,sha256=TEgc5OvsZOEX0JthkSW1NI_yLwgoeVN_x97Ibg-vyWY,2632
|
|
77
77
|
prompture/scaffold/templates/models.py.j2,sha256=JrZ99GCVK6TKWapskVRSwCssGrTu5cGZ_r46fOhY2GE,858
|
|
78
78
|
prompture/scaffold/templates/requirements.txt.j2,sha256=m3S5fi1hq9KG9l_9j317rjwWww0a43WMKd8VnUWv2A4,102
|
|
79
|
-
prompture-0.0.
|
|
80
|
-
prompture-0.0.
|
|
81
|
-
prompture-0.0.
|
|
82
|
-
prompture-0.0.
|
|
83
|
-
prompture-0.0.
|
|
84
|
-
prompture-0.0.
|
|
79
|
+
prompture-0.0.43.dist-info/licenses/LICENSE,sha256=0HgDepH7aaHNFhHF-iXuW6_GqDfYPnVkjtiCAZ4yS8I,1060
|
|
80
|
+
prompture-0.0.43.dist-info/METADATA,sha256=fqgAi4_SNDUounCogVib3kuZUmqqhqOCQ2UANXomj9k,10837
|
|
81
|
+
prompture-0.0.43.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
82
|
+
prompture-0.0.43.dist-info/entry_points.txt,sha256=AFPG3lJR86g4IJMoWQUW5Ph7G6MLNWG3A2u2Tp9zkp8,48
|
|
83
|
+
prompture-0.0.43.dist-info/top_level.txt,sha256=to86zq_kjfdoLeAxQNr420UWqT0WzkKoZ509J7Qr2t4,10
|
|
84
|
+
prompture-0.0.43.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|