vector-vault 7.2.7__tar.gz → 7.2.8__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.7
3
+ Version: 7.2.8
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.7",
5
+ version="7.2.8",
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.7
3
+ Version: 7.2.8
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
@@ -1601,6 +1601,7 @@ class Vault:
1601
1601
  if self.verbose:
1602
1602
  print("Performing image inference...")
1603
1603
 
1604
+ full_response = ''
1604
1605
  for i in self._ai.platform.image_inference(
1605
1606
  image_path=image_path,
1606
1607
  image_url=image_url,
@@ -1609,8 +1610,10 @@ class Vault:
1609
1610
  temperature=temperature,
1610
1611
  timeout=timeout
1611
1612
  ):
1613
+ full_response += i
1612
1614
  yield i
1613
1615
  yield '!END'
1616
+ return full_response
1614
1617
 
1615
1618
  else:
1616
1619
  for segment in inputs:
@@ -1639,6 +1642,7 @@ class Vault:
1639
1642
  self.rate_limiter.on_success()
1640
1643
  except Exception as e:
1641
1644
  raise e
1645
+ counter += 1
1642
1646
  if counter == len(inputs):
1643
1647
  self.update_conversation_history(self.cuid, f'User: {text} \n\nAI: {full_response}') if self.cuid else None
1644
1648
  yield '!END'
@@ -1710,7 +1714,11 @@ class Vault:
1710
1714
  print(f"API Failed too many times, exiting loop: {e}.")
1711
1715
  break
1712
1716
 
1713
- print("get chat time --- %s seconds ---" % (time.time() - start_time)) if self.verbose else 0
1717
+ print("get chat time --- %s seconds ---" % (time.time() - start_time)) if self.verbose else 0
1718
+ if return_context:
1719
+ return {'response': full_response, 'context': context}
1720
+ else:
1721
+ return full_response
1714
1722
 
1715
1723
 
1716
1724
  def print_stream(self, function, printing=True):
File without changes
File without changes
File without changes