vector-vault 7.3.1__tar.gz → 7.3.2__tar.gz
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.
- {vector_vault-7.3.1 → vector_vault-7.3.2}/PKG-INFO +1 -1
- {vector_vault-7.3.1 → vector_vault-7.3.2}/setup.py +1 -1
- {vector_vault-7.3.1 → vector_vault-7.3.2}/vector_vault.egg-info/PKG-INFO +1 -1
- {vector_vault-7.3.1 → vector_vault-7.3.2}/vectorvault/ai.py +3 -5
- {vector_vault-7.3.1 → vector_vault-7.3.2}/vectorvault/vault.py +13 -13
- {vector_vault-7.3.1 → vector_vault-7.3.2}/LICENSE +0 -0
- {vector_vault-7.3.1 → vector_vault-7.3.2}/README.md +0 -0
- {vector_vault-7.3.1 → vector_vault-7.3.2}/setup.cfg +0 -0
- {vector_vault-7.3.1 → vector_vault-7.3.2}/vector_vault.egg-info/SOURCES.txt +0 -0
- {vector_vault-7.3.1 → vector_vault-7.3.2}/vector_vault.egg-info/dependency_links.txt +0 -0
- {vector_vault-7.3.1 → vector_vault-7.3.2}/vector_vault.egg-info/requires.txt +0 -0
- {vector_vault-7.3.1 → vector_vault-7.3.2}/vector_vault.egg-info/top_level.txt +0 -0
- {vector_vault-7.3.1 → vector_vault-7.3.2}/vectorvault/__init__.py +0 -0
- {vector_vault-7.3.1 → vector_vault-7.3.2}/vectorvault/cloud_api.py +0 -0
- {vector_vault-7.3.1 → vector_vault-7.3.2}/vectorvault/cloudmanager.py +0 -0
- {vector_vault-7.3.1 → vector_vault-7.3.2}/vectorvault/credentials_manager.py +0 -0
- {vector_vault-7.3.1 → vector_vault-7.3.2}/vectorvault/itemize.py +0 -0
- {vector_vault-7.3.1 → vector_vault-7.3.2}/vectorvault/utils.py +0 -0
|
@@ -216,12 +216,10 @@ class OpenAIPlatform(LLMPlatform):
|
|
|
216
216
|
'gpt-5', 'gpt-5-mini', 'gpt-5-nano', 'gpt-5-chat-latest'
|
|
217
217
|
]
|
|
218
218
|
self.no_stream_list = [
|
|
219
|
-
'o1
|
|
219
|
+
'o1', 'o1-mini',
|
|
220
220
|
]
|
|
221
221
|
self.no_temperature_list = [
|
|
222
|
-
'o1', 'o1-mini', '
|
|
223
|
-
'o1-preview-2024-09-12', 'o1-mini-2024-09-12',
|
|
224
|
-
'o3', 'o3-mini', 'o3-mini-2025-01-31'
|
|
222
|
+
'o1', 'o1-mini', 'o3', 'o3-mini',
|
|
225
223
|
]
|
|
226
224
|
self.default_model = self.model_token_limits['default']
|
|
227
225
|
|
|
@@ -235,7 +233,7 @@ class OpenAIPlatform(LLMPlatform):
|
|
|
235
233
|
"messages": messages
|
|
236
234
|
}
|
|
237
235
|
# Include temperature only if the model actually supports it
|
|
238
|
-
if temperature is not None and temperature != 0 and model not in self.
|
|
236
|
+
if temperature is not None and temperature != 0 and model not in self.no_temperature_list:
|
|
239
237
|
params["temperature"] = temperature
|
|
240
238
|
response = openai.chat.completions.create(**params)
|
|
241
239
|
response_queue.put(response.choices[0].message.content)
|
|
@@ -174,35 +174,35 @@ class Vault:
|
|
|
174
174
|
def openai(self):
|
|
175
175
|
"""Lazy initialization of OpenAI platform"""
|
|
176
176
|
if self._openai is None:
|
|
177
|
-
self.
|
|
177
|
+
self._openai = OpenAIPlatform()
|
|
178
178
|
return self._openai
|
|
179
179
|
|
|
180
180
|
@property
|
|
181
181
|
def grok(self):
|
|
182
182
|
"""Lazy initialization of Grok platform"""
|
|
183
183
|
if self._grok is None:
|
|
184
|
-
self.
|
|
184
|
+
self._grok = GrokPlatform(self.grok_key)
|
|
185
185
|
return self._grok
|
|
186
186
|
|
|
187
187
|
@property
|
|
188
188
|
def anthropic(self):
|
|
189
189
|
"""Lazy initialization of Anthropic platform"""
|
|
190
190
|
if self._anthropic is None:
|
|
191
|
-
self.
|
|
191
|
+
self._anthropic = AnthropicPlatform(self.anthropic_key)
|
|
192
192
|
return self._anthropic
|
|
193
193
|
|
|
194
194
|
@property
|
|
195
195
|
def gemini(self):
|
|
196
196
|
"""Lazy initialization of Gemini platform"""
|
|
197
197
|
if self._gemini is None:
|
|
198
|
-
self.
|
|
198
|
+
self._gemini = GeminiPlatform(self.gemini_key)
|
|
199
199
|
return self._gemini
|
|
200
200
|
|
|
201
201
|
@property
|
|
202
202
|
def cerebras(self):
|
|
203
203
|
"""Lazy initialization of Cerebras platform"""
|
|
204
204
|
if self._cerebras is None:
|
|
205
|
-
self.
|
|
205
|
+
self._cerebras = CerebrasPlatform(self.cerebras_key)
|
|
206
206
|
return self._cerebras
|
|
207
207
|
|
|
208
208
|
def get_total_items(self, vault: str = None):
|
|
@@ -305,17 +305,17 @@ class Vault:
|
|
|
305
305
|
if model == 'default':
|
|
306
306
|
return LLMClient(self.openai, **client_kwargs)
|
|
307
307
|
|
|
308
|
-
#
|
|
308
|
+
# Prefer checking OpenAI first to avoid initializing other SDKs unnecessarily
|
|
309
309
|
if model in self.openai.model_token_limits:
|
|
310
310
|
return LLMClient(self.openai, **client_kwargs)
|
|
311
|
-
elif
|
|
312
|
-
return LLMClient(self.anthropic, **client_kwargs)
|
|
313
|
-
elif self.cerebras_key and model in self.cerebras.model_token_limits:
|
|
314
|
-
return LLMClient(self.cerebras, **client_kwargs)
|
|
315
|
-
elif self.grok_key and model in self.grok.model_token_limits:
|
|
311
|
+
elif model in self.grok.model_token_limits:
|
|
316
312
|
return LLMClient(self.grok, **client_kwargs)
|
|
317
|
-
elif
|
|
313
|
+
elif model in self.cerebras.model_token_limits:
|
|
314
|
+
return LLMClient(self.cerebras, **client_kwargs)
|
|
315
|
+
elif model in self.gemini.model_token_limits:
|
|
318
316
|
return LLMClient(self.gemini, **client_kwargs)
|
|
317
|
+
elif model in self.anthropic.model_token_limits:
|
|
318
|
+
return LLMClient(self.anthropic, **client_kwargs)
|
|
319
319
|
else:
|
|
320
320
|
print(f"Model '{model}' not found in any platform -> adding as a fine-tuned OpenAI model...")
|
|
321
321
|
self.add_fine_tuned_model_to_platform(model)
|
|
@@ -1540,7 +1540,7 @@ class Vault:
|
|
|
1540
1540
|
self.update_conversation_history(self.cuid, f'User: {text} \n\nAI: {response}') if self.cuid else None
|
|
1541
1541
|
print("get chat time --- %s seconds ---" % (time.time() - start_time)) if self.verbose else 0
|
|
1542
1542
|
|
|
1543
|
-
return {'response': response, 'context': context} if return_context else response
|
|
1543
|
+
return {'response': response, 'context': context, 'search_input': search_input} if return_context else response
|
|
1544
1544
|
|
|
1545
1545
|
|
|
1546
1546
|
def get_chat_stream(self,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|