chatlas 0.7.0__tar.gz → 0.7.1__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.

Potentially problematic release.


This version of chatlas might be problematic. Click here for more details.

Files changed (171) hide show
  1. {chatlas-0.7.0 → chatlas-0.7.1}/CHANGELOG.md +4 -0
  2. chatlas-0.7.1/LICENSE +21 -0
  3. {chatlas-0.7.0 → chatlas-0.7.1}/PKG-INFO +8 -11
  4. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_databricks.py +3 -9
  5. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_github.py +0 -6
  6. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_google.py +2 -1
  7. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_groq.py +0 -6
  8. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_ollama.py +0 -6
  9. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_openai.py +5 -31
  10. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_perplexity.py +0 -6
  11. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_version.py +2 -2
  12. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/types/anthropic/_submit.py +2 -0
  13. {chatlas-0.7.0 → chatlas-0.7.1}/pyproject.toml +14 -10
  14. {chatlas-0.7.0 → chatlas-0.7.1}/tests/test_chat.py +4 -3
  15. {chatlas-0.7.0 → chatlas-0.7.1}/tests/test_provider_databricks.py +5 -0
  16. {chatlas-0.7.0 → chatlas-0.7.1}/.github/workflows/check-update-types.yml +0 -0
  17. {chatlas-0.7.0 → chatlas-0.7.1}/.github/workflows/docs-publish.yml +0 -0
  18. {chatlas-0.7.0 → chatlas-0.7.1}/.github/workflows/release.yml +0 -0
  19. {chatlas-0.7.0 → chatlas-0.7.1}/.github/workflows/test.yml +0 -0
  20. {chatlas-0.7.0 → chatlas-0.7.1}/.gitignore +0 -0
  21. {chatlas-0.7.0 → chatlas-0.7.1}/.vscode/extensions.json +0 -0
  22. {chatlas-0.7.0 → chatlas-0.7.1}/.vscode/settings.json +0 -0
  23. {chatlas-0.7.0 → chatlas-0.7.1}/Makefile +0 -0
  24. {chatlas-0.7.0 → chatlas-0.7.1}/README.md +0 -0
  25. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/__init__.py +0 -0
  26. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_anthropic.py +0 -0
  27. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_auto.py +0 -0
  28. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_chat.py +0 -0
  29. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_content.py +0 -0
  30. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_content_image.py +0 -0
  31. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_content_pdf.py +0 -0
  32. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_display.py +0 -0
  33. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_interpolate.py +0 -0
  34. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_live_render.py +0 -0
  35. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_logging.py +0 -0
  36. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_merge.py +0 -0
  37. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_provider.py +0 -0
  38. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_snowflake.py +0 -0
  39. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_tokens.py +0 -0
  40. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_tokens_old.py +0 -0
  41. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_tools.py +0 -0
  42. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_turn.py +0 -0
  43. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_typing_extensions.py +0 -0
  44. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/_utils.py +0 -0
  45. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/py.typed +0 -0
  46. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/types/__init__.py +0 -0
  47. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/types/anthropic/__init__.py +0 -0
  48. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/types/anthropic/_client.py +0 -0
  49. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/types/anthropic/_client_bedrock.py +0 -0
  50. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/types/google/__init__.py +0 -0
  51. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/types/google/_client.py +0 -0
  52. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/types/google/_submit.py +0 -0
  53. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/types/openai/__init__.py +0 -0
  54. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/types/openai/_client.py +0 -0
  55. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/types/openai/_client_azure.py +0 -0
  56. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/types/openai/_submit.py +0 -0
  57. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/types/snowflake/__init__.py +0 -0
  58. {chatlas-0.7.0 → chatlas-0.7.1}/chatlas/types/snowflake/_submit.py +0 -0
  59. {chatlas-0.7.0 → chatlas-0.7.1}/docs/.gitignore +0 -0
  60. {chatlas-0.7.0 → chatlas-0.7.1}/docs/_extensions/machow/interlinks/.gitignore +0 -0
  61. {chatlas-0.7.0 → chatlas-0.7.1}/docs/_extensions/machow/interlinks/_extension.yml +0 -0
  62. {chatlas-0.7.0 → chatlas-0.7.1}/docs/_extensions/machow/interlinks/interlinks.lua +0 -0
  63. {chatlas-0.7.0 → chatlas-0.7.1}/docs/_quarto.yml +0 -0
  64. {chatlas-0.7.0 → chatlas-0.7.1}/docs/_sidebar.yml +0 -0
  65. {chatlas-0.7.0 → chatlas-0.7.1}/docs/congressional-assets.png +0 -0
  66. {chatlas-0.7.0 → chatlas-0.7.1}/docs/examples/third-party-testing.txt +0 -0
  67. {chatlas-0.7.0 → chatlas-0.7.1}/docs/get-started.qmd +0 -0
  68. {chatlas-0.7.0 → chatlas-0.7.1}/docs/images/congressional-assets.png +0 -0
  69. {chatlas-0.7.0 → chatlas-0.7.1}/docs/images/logo.png +0 -0
  70. {chatlas-0.7.0 → chatlas-0.7.1}/docs/images/posit-logo.png +0 -0
  71. {chatlas-0.7.0 → chatlas-0.7.1}/docs/images/tool-calling-right.svg +0 -0
  72. {chatlas-0.7.0 → chatlas-0.7.1}/docs/images/tool-calling-wrong.svg +0 -0
  73. {chatlas-0.7.0 → chatlas-0.7.1}/docs/index.py +0 -0
  74. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/favicon/android-chrome-192x192.png +0 -0
  75. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/favicon/android-chrome-512x512.png +0 -0
  76. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/favicon/apple-touch-icon.png +0 -0
  77. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/favicon/favicon-16x16.png +0 -0
  78. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/favicon/favicon-32x32.png +0 -0
  79. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/favicon/favicon.ico +0 -0
  80. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/icon/brand-yml-icon-black.png +0 -0
  81. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/icon/brand-yml-icon-black.svg +0 -0
  82. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/icon/brand-yml-icon-color.png +0 -0
  83. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/icon/brand-yml-icon-color.svg +0 -0
  84. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/icon/brand-yml-icon-white.png +0 -0
  85. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/icon/brand-yml-icon-white.svg +0 -0
  86. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/tall/brand-yml-tall-black.png +0 -0
  87. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/tall/brand-yml-tall-black.svg +0 -0
  88. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/tall/brand-yml-tall-color.png +0 -0
  89. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/tall/brand-yml-tall-color.svg +0 -0
  90. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/tall/brand-yml-tall-white.png +0 -0
  91. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/tall/brand-yml-tall-white.svg +0 -0
  92. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/wide/brand-yml-wide-black.png +0 -0
  93. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/wide/brand-yml-wide-black.svg +0 -0
  94. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/wide/brand-yml-wide-color.png +0 -0
  95. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/wide/brand-yml-wide-color.svg +0 -0
  96. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/wide/brand-yml-wide-large-black.png +0 -0
  97. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/wide/brand-yml-wide-large-color.png +0 -0
  98. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/wide/brand-yml-wide-large-white.png +0 -0
  99. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/wide/brand-yml-wide-white.png +0 -0
  100. {chatlas-0.7.0 → chatlas-0.7.1}/docs/logos/wide/brand-yml-wide-white.svg +0 -0
  101. {chatlas-0.7.0 → chatlas-0.7.1}/docs/prompt-design.qmd +0 -0
  102. {chatlas-0.7.0 → chatlas-0.7.1}/docs/rag.qmd +0 -0
  103. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/Chat.qmd +0 -0
  104. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/ChatAnthropic.qmd +0 -0
  105. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/ChatAzureOpenAI.qmd +0 -0
  106. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/ChatBedrockAnthropic.qmd +0 -0
  107. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/ChatGithub.qmd +0 -0
  108. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/ChatGoogle.qmd +0 -0
  109. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/ChatGroq.qmd +0 -0
  110. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/ChatOllama.qmd +0 -0
  111. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/ChatOpenAI.qmd +0 -0
  112. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/ChatPerplexity.qmd +0 -0
  113. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/ChatVertex.qmd +0 -0
  114. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/Provider.qmd +0 -0
  115. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/Tool.qmd +0 -0
  116. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/Turn.qmd +0 -0
  117. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/content_image_file.qmd +0 -0
  118. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/content_image_plot.qmd +0 -0
  119. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/content_image_url.qmd +0 -0
  120. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/image_file.qmd +0 -0
  121. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/image_plot.qmd +0 -0
  122. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/image_url.qmd +0 -0
  123. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/index.qmd +0 -0
  124. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/interpolate.qmd +0 -0
  125. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/interpolate_file.qmd +0 -0
  126. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/token_usage.qmd +0 -0
  127. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/types.ChatResponse.qmd +0 -0
  128. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/types.ChatResponseAsync.qmd +0 -0
  129. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/types.Content.qmd +0 -0
  130. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/types.ContentImage.qmd +0 -0
  131. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/types.ContentImageInline.qmd +0 -0
  132. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/types.ContentImageRemote.qmd +0 -0
  133. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/types.ContentJson.qmd +0 -0
  134. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/types.ContentText.qmd +0 -0
  135. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/types.ContentToolRequest.qmd +0 -0
  136. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/types.ContentToolResult.qmd +0 -0
  137. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/types.ImageContentTypes.qmd +0 -0
  138. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/types.MISSING.qmd +0 -0
  139. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/types.MISSING_TYPE.qmd +0 -0
  140. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/types.SubmitInputArgsT.qmd +0 -0
  141. {chatlas-0.7.0 → chatlas-0.7.1}/docs/reference/types.TokenUsage.qmd +0 -0
  142. {chatlas-0.7.0 → chatlas-0.7.1}/docs/structured-data.qmd +0 -0
  143. {chatlas-0.7.0 → chatlas-0.7.1}/docs/styles.scss +0 -0
  144. {chatlas-0.7.0 → chatlas-0.7.1}/docs/tool-calling.qmd +0 -0
  145. {chatlas-0.7.0 → chatlas-0.7.1}/docs/web-apps.qmd +0 -0
  146. {chatlas-0.7.0 → chatlas-0.7.1}/pytest.ini +0 -0
  147. {chatlas-0.7.0 → chatlas-0.7.1}/scripts/_generate_anthropic_types.py +0 -0
  148. {chatlas-0.7.0 → chatlas-0.7.1}/scripts/_generate_google_types.py +0 -0
  149. {chatlas-0.7.0 → chatlas-0.7.1}/scripts/_generate_openai_types.py +0 -0
  150. {chatlas-0.7.0 → chatlas-0.7.1}/scripts/_generate_snowflake_types.py +0 -0
  151. {chatlas-0.7.0 → chatlas-0.7.1}/scripts/_utils.py +0 -0
  152. {chatlas-0.7.0 → chatlas-0.7.1}/scripts/main.py +0 -0
  153. {chatlas-0.7.0 → chatlas-0.7.1}/tests/__init__.py +0 -0
  154. {chatlas-0.7.0 → chatlas-0.7.1}/tests/__snapshots__/test_chat.ambr +0 -0
  155. {chatlas-0.7.0 → chatlas-0.7.1}/tests/apples.pdf +0 -0
  156. {chatlas-0.7.0 → chatlas-0.7.1}/tests/conftest.py +0 -0
  157. {chatlas-0.7.0 → chatlas-0.7.1}/tests/images/dice.png +0 -0
  158. {chatlas-0.7.0 → chatlas-0.7.1}/tests/test_auto.py +0 -0
  159. {chatlas-0.7.0 → chatlas-0.7.1}/tests/test_content.py +0 -0
  160. {chatlas-0.7.0 → chatlas-0.7.1}/tests/test_content_image.py +0 -0
  161. {chatlas-0.7.0 → chatlas-0.7.1}/tests/test_content_pdf.py +0 -0
  162. {chatlas-0.7.0 → chatlas-0.7.1}/tests/test_content_tools.py +0 -0
  163. {chatlas-0.7.0 → chatlas-0.7.1}/tests/test_interpolate.py +0 -0
  164. {chatlas-0.7.0 → chatlas-0.7.1}/tests/test_provider_anthropic.py +0 -0
  165. {chatlas-0.7.0 → chatlas-0.7.1}/tests/test_provider_azure.py +0 -0
  166. {chatlas-0.7.0 → chatlas-0.7.1}/tests/test_provider_bedrock.py +0 -0
  167. {chatlas-0.7.0 → chatlas-0.7.1}/tests/test_provider_google.py +0 -0
  168. {chatlas-0.7.0 → chatlas-0.7.1}/tests/test_provider_openai.py +0 -0
  169. {chatlas-0.7.0 → chatlas-0.7.1}/tests/test_tokens.py +0 -0
  170. {chatlas-0.7.0 → chatlas-0.7.1}/tests/test_turns.py +0 -0
  171. {chatlas-0.7.0 → chatlas-0.7.1}/tests/test_utils_merge.py +0 -0
@@ -7,6 +7,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
7
7
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
8
  -->
9
9
 
10
+ ## [0.7.1] - 2025-05-10
11
+
12
+ * Added `openai` as a hard dependency, making installation easier for a wide range of use cases. (#91)
13
+
10
14
  ## [0.7.0] - 2025-04-22
11
15
 
12
16
  ### New features
chatlas-0.7.1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022-2025 Posit Software, PBC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chatlas
3
- Version: 0.7.0
3
+ Version: 0.7.1
4
4
  Summary: A simple and consistent interface for chatting with LLMs
5
5
  Project-URL: Homepage, https://posit-dev.github.io/chatlas
6
6
  Project-URL: Documentation, https://posit-dev.github.io/chatlas
@@ -8,6 +8,8 @@ Project-URL: Repository, https://github.com/posit-dev/chatlas
8
8
  Project-URL: Issues, https://github.com/posit-dev/chatlas/issues/
9
9
  Project-URL: Changelog, https://github.com/posit-dev/chatlas/blob/main/CHANGELOG.md
10
10
  Author-email: Carson Sievert <carson@posit.co>
11
+ License-Expression: MIT
12
+ License-File: LICENSE
11
13
  Classifier: Development Status :: 4 - Beta
12
14
  Classifier: Intended Audience :: Developers
13
15
  Classifier: License :: OSI Approved :: MIT License
@@ -18,6 +20,7 @@ Classifier: Programming Language :: Python :: 3.12
18
20
  Classifier: Programming Language :: Python :: 3.13
19
21
  Requires-Python: >=3.9
20
22
  Requires-Dist: jinja2
23
+ Requires-Dist: openai
21
24
  Requires-Dist: orjson
22
25
  Requires-Dist: pydantic>=2.0
23
26
  Requires-Dist: requests
@@ -25,15 +28,14 @@ Requires-Dist: rich
25
28
  Provides-Extra: anthropic
26
29
  Requires-Dist: anthropic; extra == 'anthropic'
27
30
  Provides-Extra: azure-openai
28
- Requires-Dist: openai; extra == 'azure-openai'
29
31
  Provides-Extra: bedrock-anthropic
30
32
  Requires-Dist: anthropic[bedrock]; extra == 'bedrock-anthropic'
31
33
  Provides-Extra: databricks
32
- Requires-Dist: databricks-sdk[openai]; extra == 'databricks'
34
+ Requires-Dist: databricks-sdk; extra == 'databricks'
33
35
  Provides-Extra: dev
34
36
  Requires-Dist: anthropic[bedrock]; extra == 'dev'
35
37
  Requires-Dist: databricks-sdk; extra == 'dev'
36
- Requires-Dist: google-genai>=1.2.0; extra == 'dev'
38
+ Requires-Dist: google-genai>=1.14.0; extra == 'dev'
37
39
  Requires-Dist: htmltools; extra == 'dev'
38
40
  Requires-Dist: matplotlib; extra == 'dev'
39
41
  Requires-Dist: numpy>1.24.4; extra == 'dev'
@@ -58,17 +60,12 @@ Requires-Dist: pyyaml; extra == 'docs'
58
60
  Requires-Dist: quartodoc>=0.7; extra == 'docs'
59
61
  Requires-Dist: sentence-transformers; extra == 'docs'
60
62
  Provides-Extra: github
61
- Requires-Dist: openai; extra == 'github'
62
63
  Provides-Extra: google
63
- Requires-Dist: google-genai; extra == 'google'
64
+ Requires-Dist: google-genai>=1.14.0; extra == 'google'
64
65
  Provides-Extra: groq
65
- Requires-Dist: openai; extra == 'groq'
66
66
  Provides-Extra: ollama
67
- Requires-Dist: openai; extra == 'ollama'
68
67
  Provides-Extra: openai
69
- Requires-Dist: openai; extra == 'openai'
70
68
  Provides-Extra: perplexity
71
- Requires-Dist: openai; extra == 'perplexity'
72
69
  Provides-Extra: snowflake
73
70
  Requires-Dist: snowflake-ml-python; extra == 'snowflake'
74
71
  Provides-Extra: test
@@ -77,7 +74,7 @@ Requires-Dist: pytest-asyncio; extra == 'test'
77
74
  Requires-Dist: pytest>=8.3.2; extra == 'test'
78
75
  Requires-Dist: syrupy>=4; extra == 'test'
79
76
  Provides-Extra: vertex
80
- Requires-Dist: google-genai; extra == 'vertex'
77
+ Requires-Dist: google-genai>=1.14.0; extra == 'vertex'
81
78
  Description-Content-Type: text/markdown
82
79
 
83
80
  <h1 class="unnumbered unlisted"> chatlas <a href="https://posit-dev.github.io/chatlas"><img src="docs/images/logo.png" align="right" height="138" alt="chatlas website" /></a> </h1>
@@ -111,17 +111,11 @@ class DatabricksProvider(OpenAIProvider):
111
111
  except ImportError:
112
112
  raise ImportError(
113
113
  "`ChatDatabricks()` requires the `databricks-sdk` package. "
114
- "Install it with `pip install databricks-sdk[openai]`."
114
+ "Install it with `pip install databricks-sdk`."
115
115
  )
116
116
 
117
- try:
118
- import httpx
119
- from openai import AsyncOpenAI
120
- except ImportError:
121
- raise ImportError(
122
- "`ChatDatabricks()` requires the `openai` package. "
123
- "Install it with `pip install openai`."
124
- )
117
+ import httpx
118
+ from openai import AsyncOpenAI
125
119
 
126
120
  self._model = model
127
121
  self._seed = None
@@ -40,12 +40,6 @@ def ChatGithub(
40
40
  You may need to apply for and be accepted into a beta access program.
41
41
  :::
42
42
 
43
- ::: {.callout-note}
44
- ## Python requirements
45
-
46
- `ChatGithub` requires the `openai` package: `pip install "chatlas[github]"`.
47
- :::
48
-
49
43
 
50
44
  Examples
51
45
  --------
@@ -291,7 +291,8 @@ class GoogleProvider(
291
291
  GoogleTool(
292
292
  function_declarations=[
293
293
  FunctionDeclaration.from_callable(
294
- client=self._client, callable=tool.func
294
+ client=self._client._api_client,
295
+ callable=tool.func,
295
296
  )
296
297
  for tool in tools.values()
297
298
  ]
@@ -38,12 +38,6 @@ def ChatGroq(
38
38
  Sign up at <https://groq.com> to get an API key.
39
39
  :::
40
40
 
41
- ::: {.callout-note}
42
- ## Python requirements
43
-
44
- `ChatGroq` requires the `openai` package: `pip install "chatlas[groq]"`.
45
- :::
46
-
47
41
  Examples
48
42
  --------
49
43
 
@@ -49,12 +49,6 @@ def ChatOllama(
49
49
  (e.g. `ollama pull llama3.2`).
50
50
  :::
51
51
 
52
- ::: {.callout-note}
53
- ## Python requirements
54
-
55
- `ChatOllama` requires the `openai` package: `pip install "chatlas[ollama]"`.
56
- :::
57
-
58
52
 
59
53
  Examples
60
54
  --------
@@ -78,12 +78,6 @@ def ChatOpenAI(
78
78
  account that will give you an API key that you can use with this package.
79
79
  :::
80
80
 
81
- ::: {.callout-note}
82
- ## Python requirements
83
-
84
- `ChatOpenAI` requires the `openai` package: `pip install "chatlas[openai]"`.
85
- :::
86
-
87
81
  Examples
88
82
  --------
89
83
  ```python
@@ -194,13 +188,7 @@ class OpenAIProvider(Provider[ChatCompletion, ChatCompletionChunk, ChatCompletio
194
188
  seed: Optional[int] = None,
195
189
  kwargs: Optional["ChatClientArgs"] = None,
196
190
  ):
197
- try:
198
- from openai import AsyncOpenAI, OpenAI
199
- except ImportError:
200
- raise ImportError(
201
- "`ChatOpenAI()` requires the `openai` package. "
202
- "Install it with `pip install openai`."
203
- )
191
+ from openai import AsyncOpenAI, OpenAI
204
192
 
205
193
  self._model = model
206
194
  self._seed = seed
@@ -433,7 +421,9 @@ class OpenAIProvider(Provider[ChatCompletion, ChatCompletionChunk, ChatCompletio
433
421
  "id": x.id,
434
422
  "function": {
435
423
  "name": x.name,
436
- "arguments": orjson.dumps(x.arguments).decode("utf-8"),
424
+ "arguments": orjson.dumps(x.arguments).decode(
425
+ "utf-8"
426
+ ),
437
427
  },
438
428
  "type": "function",
439
429
  }
@@ -602,16 +592,6 @@ def ChatAzureOpenAI(
602
592
  hosts a number of open source models as well as proprietary models
603
593
  from OpenAI.
604
594
 
605
- Prerequisites
606
- -------------
607
-
608
- ::: {.callout-note}
609
- ## Python requirements
610
-
611
- `ChatAzureOpenAI` requires the `openai` package:
612
- `pip install "chatlas[azure-openai]"`.
613
- :::
614
-
615
595
  Examples
616
596
  --------
617
597
  ```python
@@ -693,13 +673,7 @@ class OpenAIAzureProvider(OpenAIProvider):
693
673
  seed: int | None = None,
694
674
  kwargs: Optional["ChatAzureClientArgs"] = None,
695
675
  ):
696
- try:
697
- from openai import AsyncAzureOpenAI, AzureOpenAI
698
- except ImportError:
699
- raise ImportError(
700
- "`ChatAzureOpenAI()` requires the `openai` package. "
701
- "Install it with `pip install openai`."
702
- )
676
+ from openai import AsyncAzureOpenAI, AzureOpenAI
703
677
 
704
678
  self._model = deployment_id
705
679
  self._seed = seed
@@ -40,12 +40,6 @@ def ChatPerplexity(
40
40
  Sign up at <https://www.perplexity.ai> to get an API key.
41
41
  :::
42
42
 
43
- ::: {.callout-note}
44
- ## Python requirements
45
-
46
- `ChatPerplexity` requires the `openai` package: `pip install "chatlas[perplexity]"`.
47
- :::
48
-
49
43
 
50
44
  Examples
51
45
  --------
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '0.7.0'
21
- __version_tuple__ = version_tuple = (0, 7, 0)
20
+ __version__ = version = '0.7.1'
21
+ __version_tuple__ = version_tuple = (0, 7, 1)
@@ -17,6 +17,7 @@ import anthropic.types.tool_choice_none_param
17
17
  import anthropic.types.tool_choice_tool_param
18
18
  import anthropic.types.tool_param
19
19
  import anthropic.types.tool_text_editor_20250124_param
20
+ import anthropic.types.web_search_tool_20250305_param
20
21
 
21
22
 
22
23
  class SubmitInputArgs(TypedDict, total=False):
@@ -66,6 +67,7 @@ class SubmitInputArgs(TypedDict, total=False):
66
67
  anthropic.types.tool_param.ToolParam,
67
68
  anthropic.types.tool_bash_20250124_param.ToolBash20250124Param,
68
69
  anthropic.types.tool_text_editor_20250124_param.ToolTextEditor20250124Param,
70
+ anthropic.types.web_search_tool_20250305_param.WebSearchTool20250305Param,
69
71
  ]
70
72
  ],
71
73
  anthropic.NotGiven,
@@ -1,6 +1,7 @@
1
1
  [project]
2
2
  name = "chatlas"
3
3
  description = "A simple and consistent interface for chatting with LLMs"
4
+ license = "MIT"
4
5
  dynamic = ["version"]
5
6
  readme = "README.md"
6
7
  requires-python = ">=3.9"
@@ -10,6 +11,7 @@ dependencies = [
10
11
  "jinja2",
11
12
  "orjson",
12
13
  "rich",
14
+ "openai"
13
15
  ]
14
16
  classifiers = [
15
17
  "Development Status :: 4 - Beta",
@@ -48,7 +50,7 @@ dev = [
48
50
  "shiny",
49
51
  "openai",
50
52
  "anthropic[bedrock]",
51
- "google-genai>=1.2.0",
53
+ "google-genai>=1.14.0",
52
54
  "numpy>1.24.4",
53
55
  "tiktoken",
54
56
  "databricks-sdk",
@@ -75,16 +77,18 @@ docs = [
75
77
  # Provider extras ----
76
78
  anthropic = ["anthropic"]
77
79
  bedrock-anthropic = ["anthropic[bedrock]"]
78
- databricks = ["databricks-sdk[openai]"]
79
- github = ["openai"]
80
- google = ["google-genai"]
81
- groq = ["openai"]
82
- ollama = ["openai"]
83
- openai = ["openai"]
84
- azure-openai = ["openai"]
85
- perplexity = ["openai"]
80
+ databricks = ["databricks-sdk"]
81
+ # Intentionally empty since these providers used to require
82
+ # an additional openai install, but that's now included
83
+ github = []
84
+ google = ["google-genai>=1.14.0"]
85
+ groq = []
86
+ ollama = []
87
+ openai = []
88
+ azure-openai = []
89
+ perplexity = []
86
90
  snowflake = ["snowflake-ml-python"]
87
- vertex = ["google-genai"]
91
+ vertex = ["google-genai>=1.14.0"]
88
92
 
89
93
  [tool.uv]
90
94
  dev-dependencies = [
@@ -30,11 +30,12 @@ def test_simple_streaming_chat():
30
30
  chunks = [chunk for chunk in res]
31
31
  assert len(chunks) > 2
32
32
  result = "".join(chunks)
33
- rainbow_re = "^red *\norange *\nyellow *\ngreen *\nblue *\nindigo *\nviolet *\n?$"
34
- assert re.match(rainbow_re, result.lower())
33
+ res = re.sub(r"\s+", "", result).lower()
34
+ assert res == "redorangeyellowgreenblueindigoviolet"
35
35
  turn = chat.get_last_turn()
36
36
  assert turn is not None
37
- assert re.match(rainbow_re, turn.text.lower())
37
+ res = re.sub(r"\s+", "", turn.text).lower()
38
+ assert res == "redorangeyellowgreenblueindigoviolet"
38
39
 
39
40
 
40
41
  @pytest.mark.asyncio
@@ -3,6 +3,11 @@ from chatlas import ChatDatabricks
3
3
 
4
4
  from .conftest import assert_data_extraction, assert_turns_existing, assert_turns_system
5
5
 
6
+ pytest.skip(
7
+ "(Temporarily) skipping Databricks tests (access has been revoked for some reason)",
8
+ allow_module_level=True,
9
+ )
10
+
6
11
 
7
12
  def test_openai_simple_request():
8
13
  chat = ChatDatabricks(
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
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
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
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