chatlas 0.7.0__py3-none-any.whl → 0.8.0__py3-none-any.whl

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.

@@ -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):
@@ -28,9 +29,15 @@ class SubmitInputArgs(TypedDict, total=False):
28
29
  "claude-3-7-sonnet-20250219",
29
30
  "claude-3-5-haiku-latest",
30
31
  "claude-3-5-haiku-20241022",
32
+ "claude-sonnet-4-20250514",
33
+ "claude-sonnet-4-0",
34
+ "claude-4-sonnet-20250514",
31
35
  "claude-3-5-sonnet-latest",
32
36
  "claude-3-5-sonnet-20241022",
33
37
  "claude-3-5-sonnet-20240620",
38
+ "claude-opus-4-0",
39
+ "claude-opus-4-20250514",
40
+ "claude-4-opus-20250514",
34
41
  "claude-3-opus-latest",
35
42
  "claude-3-opus-20240229",
36
43
  "claude-3-sonnet-20240229",
@@ -40,6 +47,7 @@ class SubmitInputArgs(TypedDict, total=False):
40
47
  ],
41
48
  str,
42
49
  ]
50
+ service_tier: Union[Literal["auto", "standard_only"], anthropic.NotGiven]
43
51
  stop_sequences: Union[list[str], anthropic.NotGiven]
44
52
  stream: Union[Literal[False], Literal[True], anthropic.NotGiven]
45
53
  system: Union[
@@ -66,6 +74,7 @@ class SubmitInputArgs(TypedDict, total=False):
66
74
  anthropic.types.tool_param.ToolParam,
67
75
  anthropic.types.tool_bash_20250124_param.ToolBash20250124Param,
68
76
  anthropic.types.tool_text_editor_20250124_param.ToolTextEditor20250124Param,
77
+ anthropic.types.web_search_tool_20250305_param.WebSearchTool20250305Param,
69
78
  ]
70
79
  ],
71
80
  anthropic.NotGiven,
@@ -70,6 +70,7 @@ class SubmitInputArgs(TypedDict, total=False):
70
70
  "gpt-4o-search-preview-2025-03-11",
71
71
  "gpt-4o-mini-search-preview-2025-03-11",
72
72
  "chatgpt-4o-latest",
73
+ "codex-mini-latest",
73
74
  "gpt-4o-mini",
74
75
  "gpt-4o-mini-2024-07-18",
75
76
  "gpt-4-turbo",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chatlas
3
- Version: 0.7.0
3
+ Version: 0.8.0
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'
@@ -42,7 +44,7 @@ Requires-Dist: pillow; extra == 'dev'
42
44
  Requires-Dist: python-dotenv; extra == 'dev'
43
45
  Requires-Dist: ruff>=0.6.5; extra == 'dev'
44
46
  Requires-Dist: shiny; extra == 'dev'
45
- Requires-Dist: snowflake-ml-python; extra == 'dev'
47
+ Requires-Dist: snowflake-ml-python>=1.8.4; extra == 'dev'
46
48
  Requires-Dist: tenacity; extra == 'dev'
47
49
  Requires-Dist: tiktoken; extra == 'dev'
48
50
  Requires-Dist: torch; (python_version <= '3.11') and 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>
@@ -1,46 +1,46 @@
1
- chatlas/__init__.py,sha256=5bHHZOdSM84VUD1WlUYH7vYxGiHygYEoRsQzGHHDXXk,1531
2
- chatlas/_anthropic.py,sha256=VAtzRcrWPVe38wBBtDapxURISF2qn2yd6wg_8VY94Lk,24994
1
+ chatlas/__init__.py,sha256=vZpEIGNqb8pJ5QCEYjHcKuoc0HDTkuhR40sJfKdhN7s,1571
2
+ chatlas/_anthropic.py,sha256=iF2aFS07T4I2Zlw5hI6Y-PjIBH4cG6ibOgVy12dI_6I,24885
3
3
  chatlas/_auto.py,sha256=HsAvVwpSOkI9fdC35YX8beaE2IBnWLWTzOzu0ny951o,6129
4
- chatlas/_chat.py,sha256=wTkXu_AmL2frIHy-JZveuY44BigkrG21_06beyD3pIw,52691
5
- chatlas/_content.py,sha256=VW1iKOWlzeoOjTg_TNQTj1zlmdWbDXqTjBy3fxddhdc,15767
4
+ chatlas/_callbacks.py,sha256=3RpPaOQonTqScjXbaShgKJ1Rc-YxzWerxKRBjVssFnc,1838
5
+ chatlas/_chat.py,sha256=uo8ucU0l59KkpOD93bbeJC6jqrM7DrzIKOl9g6PvhhY,56171
6
+ chatlas/_content.py,sha256=KtQfJ3CATk_TGzGzihc_wWRuHdlLWp9Dr-OgxZQbOQE,15931
6
7
  chatlas/_content_image.py,sha256=EUK6wAint-JatLsiwvaPDu4D3W-NcIsDCkzABkXgfDg,8304
7
8
  chatlas/_content_pdf.py,sha256=cffeuJxzhUDukQ-Srkmpy62M8X12skYpU_FVq-Wvya4,2420
8
- chatlas/_databricks.py,sha256=G87AB6qWGxIlIP8tc6iHeaMpjXe47FuVZ00anPoM9ZI,4919
9
+ chatlas/_databricks.py,sha256=56dInk3UjQ5HqGiysn9TJ9hat745MhaFEn-IPfnR4vE,4696
9
10
  chatlas/_display.py,sha256=wyQzSc6z1VqrJfkTLkw1wQcti9s1Pr4qT8UxFJESn4U,4664
10
- chatlas/_github.py,sha256=8_vvUIBCprgrQ5UItky5yETfEQPG2fCMM57ga77p28E,4377
11
- chatlas/_google.py,sha256=FfBnkXRtdJiBTViOqOg7qoConcRPLAKqWhUYKcfvhO4,19356
12
- chatlas/_groq.py,sha256=iuFvxeXkq81sDHxVV9zbVHjf2ZuNT94P-XkuXvqtGms,4160
11
+ chatlas/_github.py,sha256=xdGsvWvlbGMc1lgEM_oRL5p-wuxaZG-lu6a_4zxV-4Y,4235
12
+ chatlas/_google.py,sha256=pwnomFcDEzPXQQfFifoH2FrbDvOgRIIyjcNoJ8Hvv-I,19397
13
+ chatlas/_groq.py,sha256=0ou8iiAeI8EqjNKsLZhljQffSVOj8eCQEtW7-stZToY,4022
13
14
  chatlas/_interpolate.py,sha256=ykwLP3x-ya9Q33U4knSU75dtk6pzJAeythEEIW-43Pc,3631
14
15
  chatlas/_live_render.py,sha256=UMZltE35LxziDKPMEeDwQ9meZ95SeqwhJi7j-y9pcro,4004
15
- chatlas/_logging.py,sha256=7a20sAl1PkW1qBNrfd_ieUbQXV8Gf4Vuf0Wn62LNBmk,2290
16
+ chatlas/_logging.py,sha256=weKvXZDIZ88X7X61ruXM_S0AAhQ5mgiW9dR-km8x7Mg,3324
16
17
  chatlas/_merge.py,sha256=SGj_BetgA7gaOqSBKOhYmW3CYeQKTEehFrXvx3y4OYE,3924
17
- chatlas/_ollama.py,sha256=np7s43abaNKt4eSygerHugvtzHjCyOQjSo0ZIRkE8Yc,3769
18
- chatlas/_openai.py,sha256=AIYZ6yc_euymi0OSE0ccPdA2nJLP-8wJSVSyPHckcBw,24653
19
- chatlas/_perplexity.py,sha256=j-jfOIYefZC5XzGjmya9GCCGQN003cRmiAv6vmo0rTQ,4454
18
+ chatlas/_ollama.py,sha256=_5Na11A7Hrs83CK8x542UHDvpLjQPyTJ9WM03eFDqKA,3627
19
+ chatlas/_openai.py,sha256=qkU2DWOTsEVfjiAk4LDRszErVGLswiLwwim1zZnHn8o,23968
20
+ chatlas/_perplexity.py,sha256=POp_Lc8RlSEsHIHhFlHOE8IVsOb2nf7mHQZvyQp49_U,4304
20
21
  chatlas/_provider.py,sha256=YmdBbz_u5aP_kBxl6s26OPiSnWG_vZ_fvf9L2qvBmyI,3809
21
- chatlas/_snowflake.py,sha256=xlDdaM-YCmz3Y8KU6jxdCICuS-H4XLpQBHjqnaiEqKk,11576
22
+ chatlas/_snowflake.py,sha256=y9Lu5SFGsJ1QqQD0Xx7vsAwcBtw2_MWT1Vu7e0HQis0,24098
22
23
  chatlas/_tokens.py,sha256=3W3EPUp9eWXUiwuzJwEPBv43AUznbK46pm59Htti7z4,2392
23
24
  chatlas/_tokens_old.py,sha256=L9d9oafrXvEx2u4nIn_Jjn7adnQyLBnYBuPwJUE8Pl8,5005
24
- chatlas/_tools.py,sha256=-qt4U1AFkebQoX9kpsBy5QXK8a2PpHX6Amgm44gcQ68,4113
25
+ chatlas/_tools.py,sha256=Qucyx_Pq-DX66r5xsZ7VRNxrIMS_se-FS7HH7jbB1A0,6085
25
26
  chatlas/_turn.py,sha256=7pve6YmD-L4c7Oxd6_ZAPkDudJ8AMpa6pP-pSroA1dM,5067
26
27
  chatlas/_typing_extensions.py,sha256=YdzmlyPSBpIEcsOkoz12e6jETT1XEMV2Q72haE4cfwY,1036
27
28
  chatlas/_utils.py,sha256=lli8ChbPUwEPebW8AoOoNoqiA95SVtoW2gb6ymj9gw4,4028
28
- chatlas/_version.py,sha256=itvIHlqPKoO_13qf_yPD2pmcp0U4z1s19vvBGZM927Q,511
29
+ chatlas/_version.py,sha256=fSm5pLlwHxfTD7vBTVEqChJUua9ilUsdQYNN_V3u3iE,511
29
30
  chatlas/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
31
  chatlas/types/__init__.py,sha256=P_EDL4eqsigKwB-u2qRmKlYQS5Y65m7oWjGC3cYmxO4,719
31
32
  chatlas/types/anthropic/__init__.py,sha256=OwubA-DPHYpYo0XyRyAFwftOI0mOxtHzAyhUSLcDx54,417
32
33
  chatlas/types/anthropic/_client.py,sha256=G0LRhoFBcsSOMr5qhP-0rAScsVXaVlHCpggfVp54bnQ,690
33
34
  chatlas/types/anthropic/_client_bedrock.py,sha256=mNazQlu0pQt8JdzrYn3LKNgE4n732GjhQUJdQQK9QkY,785
34
- chatlas/types/anthropic/_submit.py,sha256=xoQyZ3SUUttWDPAjZTPfFch7D1bIU0AJNsenViYhAKs,2974
35
+ chatlas/types/anthropic/_submit.py,sha256=FJPtswPf_NTV3kAXlFODin3bFOqYNdamopjIaVSSr24,3417
35
36
  chatlas/types/google/__init__.py,sha256=ZJhi8Kwvio2zp8T1TQqmvdHqkS-Khb6BGESPjREADgo,337
36
37
  chatlas/types/google/_client.py,sha256=t7aKbxYq_xOA1Z3RnWcjewifdQFSHi7vKEj6MyKMCJk,729
37
38
  chatlas/types/google/_submit.py,sha256=b-ZqMvI551Ia7pFlWdqUQJjov3neHmVwLFw-P2bgU8w,1883
38
39
  chatlas/types/openai/__init__.py,sha256=Q2RAr1bSH1nHsxICK05nAmKmxdhKmhbBkWD_XHiVSrI,411
39
40
  chatlas/types/openai/_client.py,sha256=YGm_EHtRSSHeeOZe-CV7oNvMJpEblEta3UTuU7lSRO8,754
40
41
  chatlas/types/openai/_client_azure.py,sha256=jx8D_p46CLDGzTP-k-TtGzj-f3junj6or-86m8DD_0w,858
41
- chatlas/types/openai/_submit.py,sha256=R0PUgXmhywLzRT_C3DYCsfbHCB1mD7cMY3zd8q7E-PU,6574
42
- chatlas/types/snowflake/__init__.py,sha256=NVKw_gLVnSlMNdE6BpikrQw8GV8LvIn5SR8eI8Afgbs,273
43
- chatlas/types/snowflake/_submit.py,sha256=Fgcb2Z4mXYwAR2b7Kn3SdEYFlO4gJiUvkDJ3lDoN0IY,799
44
- chatlas-0.7.0.dist-info/METADATA,sha256=rb2oYfWSve7uDdoKouiZb2OAltvOMc-gXfucQRJ4skY,15425
45
- chatlas-0.7.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
46
- chatlas-0.7.0.dist-info/RECORD,,
42
+ chatlas/types/openai/_submit.py,sha256=FmDBq8Wg8R-GB3mFBCvAPHyniCyIkgrzwd_iOiAOLM8,6607
43
+ chatlas-0.8.0.dist-info/METADATA,sha256=2qCNO5-g1k5DvVwJEkTwk8ve8TE16fWditQowVEhdH0,15255
44
+ chatlas-0.8.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
45
+ chatlas-0.8.0.dist-info/licenses/LICENSE,sha256=zyuGzPOC7CcbOaBHsQ3UEyKYRO56KDUkor0OA4LqqDg,1081
46
+ chatlas-0.8.0.dist-info/RECORD,,
@@ -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,8 +0,0 @@
1
- # ---------------------------------------------------------
2
- # Do not modify this file. It was generated by `scripts/generate_typed_dicts.py`.
3
- # ---------------------------------------------------------
4
-
5
-
6
- from ._submit import SubmitInputArgs
7
-
8
- __all__ = ("SubmitInputArgs",)
@@ -1,24 +0,0 @@
1
- # ---------------------------------------------------------
2
- # Do not modify this file. It was generated by `scripts/generate_typed_dicts.py`.
3
- # ---------------------------------------------------------
4
-
5
-
6
- from typing import Optional, TypedDict, Union
7
-
8
- import snowflake.cortex._complete
9
- import snowflake.snowpark.column
10
- import snowflake.snowpark.session
11
-
12
-
13
- class SubmitInputArgs(TypedDict, total=False):
14
- model: Union[str, snowflake.snowpark.column.Column]
15
- prompt: Union[
16
- str,
17
- list[snowflake.cortex._complete.ConversationMessage],
18
- snowflake.snowpark.column.Column,
19
- ]
20
- options: Optional[snowflake.cortex._complete.CompleteOptions]
21
- session: Optional[snowflake.snowpark.session.Session]
22
- stream: bool
23
- timeout: Optional[float]
24
- deadline: Optional[float]