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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vector_vault
3
- Version: 7.3.1
3
+ Version: 7.3.2
4
4
  Summary: Quickly create RAG apps, Agents, and Unleash the full power of AI with Vector Vault
5
5
  Home-page: https://github.com/John-Rood/VectorVault
6
6
  Author: VectorVault.io
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="vector_vault",
5
- version="7.3.1",
5
+ version="7.3.2",
6
6
  packages=find_packages(),
7
7
  author="VectorVault.io",
8
8
  author_email="john@johnrood.com",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vector-vault
3
- Version: 7.3.1
3
+ Version: 7.3.2
4
4
  Summary: Quickly create RAG apps, Agents, and Unleash the full power of AI with Vector Vault
5
5
  Home-page: https://github.com/John-Rood/VectorVault
6
6
  Author: VectorVault.io
@@ -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-2024-12-17', 'o1-preview-2024-09-12', 'o1-mini-2024-09-12'
219
+ 'o1', 'o1-mini',
220
220
  ]
221
221
  self.no_temperature_list = [
222
- 'o1', 'o1-mini', 'o1-2024-12-17',
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.different_inference_list:
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._initialize_platforms()
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._initialize_platforms()
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._initialize_platforms()
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._initialize_platforms()
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._initialize_platforms()
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
- # Check OpenAI first since it's most common and always available
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 self.anthropic_key and model in self.anthropic.model_token_limits:
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 self.gemini_key and model in self.gemini.model_token_limits:
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