chatterer 0.1.21__tar.gz → 0.1.22__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.
Files changed (49) hide show
  1. {chatterer-0.1.21 → chatterer-0.1.22}/PKG-INFO +1 -1
  2. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/language_model.py +5 -2
  3. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer.egg-info/PKG-INFO +1 -1
  4. {chatterer-0.1.21 → chatterer-0.1.22}/pyproject.toml +1 -1
  5. {chatterer-0.1.21 → chatterer-0.1.22}/README.md +0 -0
  6. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/__init__.py +0 -0
  7. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/common_types/__init__.py +0 -0
  8. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/common_types/io.py +0 -0
  9. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/examples/__init__.py +0 -0
  10. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/examples/anything_to_markdown.py +0 -0
  11. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/examples/get_code_snippets.py +0 -0
  12. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/examples/login_with_playwright.py +0 -0
  13. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/examples/make_ppt.py +0 -0
  14. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/examples/pdf_to_markdown.py +0 -0
  15. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/examples/pdf_to_text.py +0 -0
  16. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/examples/transcription_api.py +0 -0
  17. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/examples/upstage_parser.py +0 -0
  18. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/examples/webpage_to_markdown.py +0 -0
  19. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/interactive.py +0 -0
  20. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/messages.py +0 -0
  21. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/py.typed +0 -0
  22. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/strategies/__init__.py +0 -0
  23. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/strategies/atom_of_thoughts.py +0 -0
  24. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/strategies/base.py +0 -0
  25. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/tools/__init__.py +0 -0
  26. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/tools/caption_markdown_images.py +0 -0
  27. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/tools/citation_chunking/__init__.py +0 -0
  28. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/tools/citation_chunking/chunks.py +0 -0
  29. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/tools/citation_chunking/citation_chunker.py +0 -0
  30. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/tools/citation_chunking/citations.py +0 -0
  31. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/tools/citation_chunking/prompt.py +0 -0
  32. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/tools/citation_chunking/reference.py +0 -0
  33. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/tools/citation_chunking/utils.py +0 -0
  34. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/tools/convert_pdf_to_markdown.py +0 -0
  35. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/tools/convert_to_text.py +0 -0
  36. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/tools/upstage_document_parser.py +0 -0
  37. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/tools/webpage_to_markdown.py +0 -0
  38. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/tools/youtube.py +0 -0
  39. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/utils/__init__.py +0 -0
  40. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/utils/base64_image.py +0 -0
  41. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/utils/bytesio.py +0 -0
  42. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/utils/code_agent.py +0 -0
  43. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer/utils/imghdr.py +0 -0
  44. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer.egg-info/SOURCES.txt +0 -0
  45. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer.egg-info/dependency_links.txt +0 -0
  46. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer.egg-info/entry_points.txt +0 -0
  47. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer.egg-info/requires.txt +0 -0
  48. {chatterer-0.1.21 → chatterer-0.1.22}/chatterer.egg-info/top_level.txt +0 -0
  49. {chatterer-0.1.21 → chatterer-0.1.22}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chatterer
3
- Version: 0.1.21
3
+ Version: 0.1.22
4
4
  Summary: The highest-level interface for various LLM APIs.
5
5
  Requires-Python: >=3.12
6
6
  Description-Content-Type: text/markdown
@@ -66,12 +66,15 @@ class Chatterer(BaseModel):
66
66
 
67
67
  @classmethod
68
68
  def from_provider(
69
- cls, provider_and_model: str, structured_output_kwargs: Optional[dict[str, object]] = {"strict": True}
69
+ cls,
70
+ provider_and_model: str,
71
+ structured_output_kwargs: Optional[dict[str, object]] = {"strict": True},
72
+ **kwargs: object,
70
73
  ) -> Self:
71
74
  backend, model = provider_and_model.split(":", 1)
72
75
  backends = cls.get_backends()
73
76
  if func := backends.get(backend):
74
- return func(model, structured_output_kwargs)
77
+ return func(model, structured_output_kwargs, **kwargs)
75
78
  else:
76
79
  raise ValueError(f"Unsupported provider: {backend}. Supported providers are: {', '.join(backends.keys())}.")
77
80
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chatterer
3
- Version: 0.1.21
3
+ Version: 0.1.22
4
4
  Summary: The highest-level interface for various LLM APIs.
5
5
  Requires-Python: >=3.12
6
6
  Description-Content-Type: text/markdown
@@ -10,7 +10,7 @@ dependencies = [
10
10
  "spargear>=0.2.0",
11
11
  ]
12
12
  name = "chatterer"
13
- version = "0.1.21"
13
+ version = "0.1.22"
14
14
  description = "The highest-level interface for various LLM APIs."
15
15
  readme = "README.md"
16
16
  requires-python = ">=3.12"
File without changes
File without changes