chatlas 0.7.1__py3-none-any.whl → 0.8.1__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.
- chatlas/__init__.py +2 -1
- chatlas/_anthropic.py +1 -4
- chatlas/_callbacks.py +56 -0
- chatlas/_chat.py +182 -84
- chatlas/_content.py +6 -0
- chatlas/_databricks.py +1 -1
- chatlas/_logging.py +29 -5
- chatlas/_snowflake.py +398 -72
- chatlas/_tools.py +59 -1
- chatlas/_version.py +2 -2
- chatlas/types/anthropic/_submit.py +7 -0
- chatlas/types/openai/_submit.py +1 -0
- {chatlas-0.7.1.dist-info → chatlas-0.8.1.dist-info}/METADATA +2 -2
- {chatlas-0.7.1.dist-info → chatlas-0.8.1.dist-info}/RECORD +16 -17
- chatlas/types/snowflake/__init__.py +0 -8
- chatlas/types/snowflake/_submit.py +0 -24
- {chatlas-0.7.1.dist-info → chatlas-0.8.1.dist-info}/WHEEL +0 -0
- {chatlas-0.7.1.dist-info → chatlas-0.8.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -29,9 +29,15 @@ class SubmitInputArgs(TypedDict, total=False):
|
|
|
29
29
|
"claude-3-7-sonnet-20250219",
|
|
30
30
|
"claude-3-5-haiku-latest",
|
|
31
31
|
"claude-3-5-haiku-20241022",
|
|
32
|
+
"claude-sonnet-4-20250514",
|
|
33
|
+
"claude-sonnet-4-0",
|
|
34
|
+
"claude-4-sonnet-20250514",
|
|
32
35
|
"claude-3-5-sonnet-latest",
|
|
33
36
|
"claude-3-5-sonnet-20241022",
|
|
34
37
|
"claude-3-5-sonnet-20240620",
|
|
38
|
+
"claude-opus-4-0",
|
|
39
|
+
"claude-opus-4-20250514",
|
|
40
|
+
"claude-4-opus-20250514",
|
|
35
41
|
"claude-3-opus-latest",
|
|
36
42
|
"claude-3-opus-20240229",
|
|
37
43
|
"claude-3-sonnet-20240229",
|
|
@@ -41,6 +47,7 @@ class SubmitInputArgs(TypedDict, total=False):
|
|
|
41
47
|
],
|
|
42
48
|
str,
|
|
43
49
|
]
|
|
50
|
+
service_tier: Union[Literal["auto", "standard_only"], anthropic.NotGiven]
|
|
44
51
|
stop_sequences: Union[list[str], anthropic.NotGiven]
|
|
45
52
|
stream: Union[Literal[False], Literal[True], anthropic.NotGiven]
|
|
46
53
|
system: Union[
|
chatlas/types/openai/_submit.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: chatlas
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.8.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
|
|
@@ -44,7 +44,7 @@ Requires-Dist: pillow; extra == 'dev'
|
|
|
44
44
|
Requires-Dist: python-dotenv; extra == 'dev'
|
|
45
45
|
Requires-Dist: ruff>=0.6.5; extra == 'dev'
|
|
46
46
|
Requires-Dist: shiny; extra == 'dev'
|
|
47
|
-
Requires-Dist: snowflake-ml-python; extra == 'dev'
|
|
47
|
+
Requires-Dist: snowflake-ml-python>=1.8.4; extra == 'dev'
|
|
48
48
|
Requires-Dist: tenacity; extra == 'dev'
|
|
49
49
|
Requires-Dist: tiktoken; extra == 'dev'
|
|
50
50
|
Requires-Dist: torch; (python_version <= '3.11') and extra == 'dev'
|
|
@@ -1,47 +1,46 @@
|
|
|
1
|
-
chatlas/__init__.py,sha256=
|
|
2
|
-
chatlas/_anthropic.py,sha256=
|
|
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/
|
|
5
|
-
chatlas/
|
|
4
|
+
chatlas/_callbacks.py,sha256=3RpPaOQonTqScjXbaShgKJ1Rc-YxzWerxKRBjVssFnc,1838
|
|
5
|
+
chatlas/_chat.py,sha256=KJDXAV7AS_PFGuSdx90AKzBw0PMKBeZpIF4OmHrPuMw,57864
|
|
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=
|
|
9
|
+
chatlas/_databricks.py,sha256=56dInk3UjQ5HqGiysn9TJ9hat745MhaFEn-IPfnR4vE,4696
|
|
9
10
|
chatlas/_display.py,sha256=wyQzSc6z1VqrJfkTLkw1wQcti9s1Pr4qT8UxFJESn4U,4664
|
|
10
11
|
chatlas/_github.py,sha256=xdGsvWvlbGMc1lgEM_oRL5p-wuxaZG-lu6a_4zxV-4Y,4235
|
|
11
12
|
chatlas/_google.py,sha256=pwnomFcDEzPXQQfFifoH2FrbDvOgRIIyjcNoJ8Hvv-I,19397
|
|
12
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=
|
|
16
|
+
chatlas/_logging.py,sha256=weKvXZDIZ88X7X61ruXM_S0AAhQ5mgiW9dR-km8x7Mg,3324
|
|
16
17
|
chatlas/_merge.py,sha256=SGj_BetgA7gaOqSBKOhYmW3CYeQKTEehFrXvx3y4OYE,3924
|
|
17
18
|
chatlas/_ollama.py,sha256=_5Na11A7Hrs83CK8x542UHDvpLjQPyTJ9WM03eFDqKA,3627
|
|
18
19
|
chatlas/_openai.py,sha256=qkU2DWOTsEVfjiAk4LDRszErVGLswiLwwim1zZnHn8o,23968
|
|
19
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=
|
|
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
|
|
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=
|
|
29
|
+
chatlas/_version.py,sha256=Qh9qKQ7_wMS7wH5nRvhQyYwD9deQawM2RC-sVdT7RyM,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=
|
|
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=
|
|
42
|
-
chatlas/
|
|
43
|
-
chatlas/
|
|
44
|
-
chatlas-0.
|
|
45
|
-
chatlas-0.
|
|
46
|
-
chatlas-0.7.1.dist-info/licenses/LICENSE,sha256=zyuGzPOC7CcbOaBHsQ3UEyKYRO56KDUkor0OA4LqqDg,1081
|
|
47
|
-
chatlas-0.7.1.dist-info/RECORD,,
|
|
42
|
+
chatlas/types/openai/_submit.py,sha256=FmDBq8Wg8R-GB3mFBCvAPHyniCyIkgrzwd_iOiAOLM8,6607
|
|
43
|
+
chatlas-0.8.1.dist-info/METADATA,sha256=uQDhm3goorhNSXrkOw5kN7J51tiCharGydKMv2wslZo,15255
|
|
44
|
+
chatlas-0.8.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
45
|
+
chatlas-0.8.1.dist-info/licenses/LICENSE,sha256=zyuGzPOC7CcbOaBHsQ3UEyKYRO56KDUkor0OA4LqqDg,1081
|
|
46
|
+
chatlas-0.8.1.dist-info/RECORD,,
|
|
@@ -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]
|
|
File without changes
|
|
File without changes
|