vector-vault 7.2.1__tar.gz → 7.2.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.2.1
3
+ Version: 7.2.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.2.1",
5
+ version="7.2.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.2.1
3
+ Version: 7.2.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
@@ -301,6 +301,10 @@ class Vault:
301
301
  "personality_message": self.personality_message
302
302
  }
303
303
 
304
+ # Handle 'default' as a special case - always use OpenAI's default
305
+ if model == 'default':
306
+ return LLMClient(self.openai, **client_kwargs)
307
+
304
308
  if model in self.anthropic.model_token_limits:
305
309
  return LLMClient(self.anthropic, **client_kwargs)
306
310
  elif model in self.cerebras.model_token_limits:
@@ -331,15 +335,10 @@ class Vault:
331
335
  if not self.ai_loaded or model:
332
336
  self.ai_loaded = True
333
337
 
334
- if model == 'default' or model is None:
335
- # OpenAI default
336
- self._ai = LLMClient(self.openai,
337
- fine_tuned_context_window=self.fine_tuned_context_window,
338
- main_prompt=self.main_prompt,
339
- main_prompt_with_context=self.main_prompt_with_context,
340
- personality_message=self.personality_message)
341
- else:
338
+ if model:
342
339
  self._ai = self.get_client_from_model(model=model)
340
+ else:
341
+ self._ai = self.get_client_from_model(model=self.all_models['default'])
343
342
 
344
343
  try:
345
344
  cstm_mn = self.main_prompt != self._ai.main_prompt
File without changes
File without changes
File without changes