letta-nightly 0.11.7.dev20250905104120__py3-none-any.whl → 0.11.7.dev20250906103958__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.
- letta/schemas/providers/ollama.py +12 -2
- {letta_nightly-0.11.7.dev20250905104120.dist-info → letta_nightly-0.11.7.dev20250906103958.dist-info}/METADATA +1 -2
- {letta_nightly-0.11.7.dev20250905104120.dist-info → letta_nightly-0.11.7.dev20250906103958.dist-info}/RECORD +6 -6
- {letta_nightly-0.11.7.dev20250905104120.dist-info → letta_nightly-0.11.7.dev20250906103958.dist-info}/WHEEL +0 -0
- {letta_nightly-0.11.7.dev20250905104120.dist-info → letta_nightly-0.11.7.dev20250906103958.dist-info}/entry_points.txt +0 -0
- {letta_nightly-0.11.7.dev20250905104120.dist-info → letta_nightly-0.11.7.dev20250906103958.dist-info}/licenses/LICENSE +0 -0
@@ -82,8 +82,18 @@ class OllamaProvider(OpenAIProvider):
|
|
82
82
|
response_json = await response.json()
|
83
83
|
|
84
84
|
configs = []
|
85
|
-
for model in response_json
|
86
|
-
|
85
|
+
for model in response_json.get("models", []):
|
86
|
+
model_name = model["name"]
|
87
|
+
model_details = await self._get_model_details_async(model_name)
|
88
|
+
if not model_details or "embedding" not in model_details.get("capabilities", []):
|
89
|
+
continue
|
90
|
+
|
91
|
+
embedding_dim = None
|
92
|
+
model_info = model_details.get("model_info", {})
|
93
|
+
if architecture := model_info.get("general.architecture"):
|
94
|
+
if embedding_length := model_info.get(f"{architecture}.embedding_length"):
|
95
|
+
embedding_dim = int(embedding_length)
|
96
|
+
|
87
97
|
if not embedding_dim:
|
88
98
|
logger.warning(f"Ollama model {model_name} has no embedding dimension, using default {DEFAULT_EMBEDDING_DIM}")
|
89
99
|
embedding_dim = DEFAULT_EMBEDDING_DIM
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: letta-nightly
|
3
|
-
Version: 0.11.7.
|
3
|
+
Version: 0.11.7.dev20250906103958
|
4
4
|
Summary: Create LLM agents with long-term memory and custom tools
|
5
5
|
Author-email: Letta Team <contact@letta.com>
|
6
6
|
License: Apache License
|
@@ -81,7 +81,6 @@ Requires-Dist: langchain-community>=0.3.7; extra == 'desktop'
|
|
81
81
|
Requires-Dist: langchain>=0.3.7; extra == 'desktop'
|
82
82
|
Requires-Dist: locust>=2.31.5; extra == 'desktop'
|
83
83
|
Requires-Dist: magika>=0.6.2; extra == 'desktop'
|
84
|
-
Requires-Dist: pgserver>=0.1.4; extra == 'desktop'
|
85
84
|
Requires-Dist: pgvector>=0.2.3; extra == 'desktop'
|
86
85
|
Requires-Dist: sqlite-vec>=0.1.7a2; extra == 'desktop'
|
87
86
|
Requires-Dist: tiktoken>=0.11.0; extra == 'desktop'
|
@@ -307,7 +307,7 @@ letta/schemas/providers/groq.py,sha256=AquJQH-Y5-s75Nj2_X7xavuWUu5F2bSvHjAZ1Gfpe
|
|
307
307
|
letta/schemas/providers/letta.py,sha256=tsVg4dE7r33TDkK6BCbC9lvnjk35uf32mecmuY3589E,1580
|
308
308
|
letta/schemas/providers/lmstudio.py,sha256=Hi8Nir96B5FCQ8cVT-mWl7nLX0Z2-RIxUANAqRGG-zo,4323
|
309
309
|
letta/schemas/providers/mistral.py,sha256=EjFF6YcfN5jBjCfnZw3ECv_3qYuG0HVb7B0VoYk-jKU,1866
|
310
|
-
letta/schemas/providers/ollama.py,sha256=
|
310
|
+
letta/schemas/providers/ollama.py,sha256=6uMKhK7lq_f9-k0oFNO7NDhBdpv57HxyjWlYTuuYYsE,5970
|
311
311
|
letta/schemas/providers/openai.py,sha256=XcuGB-80qpEzMKfPNU6AEtlhNkrdWTGBQiBqBx0qteY,11145
|
312
312
|
letta/schemas/providers/together.py,sha256=jsaziBEfVKg_70c3-m0FdYYBnbYpYkCEPVDKBZsvMWs,3852
|
313
313
|
letta/schemas/providers/vllm.py,sha256=CwM260cxWLkviVzY4wwkw4NmDAK69fv531AofRGa9JA,2480
|
@@ -462,8 +462,8 @@ letta/templates/sandbox_code_file_async.py.j2,sha256=lb7nh_P2W9VZHzU_9TxSCEMUod7
|
|
462
462
|
letta/templates/summary_request_text.j2,sha256=ZttQwXonW2lk4pJLYzLK0pmo4EO4EtUUIXjgXKiizuc,842
|
463
463
|
letta/templates/template_helper.py,sha256=HkG3zwRc5NVGmSTQu5PUTpz7LevK43bzXVaQuN8urf0,1634
|
464
464
|
letta/types/__init__.py,sha256=hokKjCVFGEfR7SLMrtZsRsBfsC7yTIbgKPLdGg4K1eY,147
|
465
|
-
letta_nightly-0.11.7.
|
466
|
-
letta_nightly-0.11.7.
|
467
|
-
letta_nightly-0.11.7.
|
468
|
-
letta_nightly-0.11.7.
|
469
|
-
letta_nightly-0.11.7.
|
465
|
+
letta_nightly-0.11.7.dev20250906103958.dist-info/METADATA,sha256=hyk9OocJ2YgFJW2H7UkCiwqx4xbuyApqzN_vWOQhpAs,24436
|
466
|
+
letta_nightly-0.11.7.dev20250906103958.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
467
|
+
letta_nightly-0.11.7.dev20250906103958.dist-info/entry_points.txt,sha256=m-94Paj-kxiR6Ktu0us0_2qfhn29DzF2oVzqBE6cu8w,41
|
468
|
+
letta_nightly-0.11.7.dev20250906103958.dist-info/licenses/LICENSE,sha256=mExtuZ_GYJgDEI38GWdiEYZizZS4KkVt2SF1g_GPNhI,10759
|
469
|
+
letta_nightly-0.11.7.dev20250906103958.dist-info/RECORD,,
|
File without changes
|
File without changes
|