chatlas 0.3.0__py3-none-any.whl → 0.5.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.
- chatlas/__init__.py +11 -1
- chatlas/_anthropic.py +8 -10
- chatlas/_auto.py +183 -0
- chatlas/_chat.py +50 -19
- chatlas/_content.py +23 -7
- chatlas/_display.py +12 -2
- chatlas/_github.py +1 -1
- chatlas/_google.py +263 -166
- chatlas/_groq.py +1 -1
- chatlas/_live_render.py +116 -0
- chatlas/_merge.py +1 -1
- chatlas/_ollama.py +1 -1
- chatlas/_openai.py +4 -6
- chatlas/_perplexity.py +1 -1
- chatlas/_provider.py +0 -9
- chatlas/_snowflake.py +321 -0
- chatlas/_utils.py +7 -0
- chatlas/_version.py +21 -0
- chatlas/py.typed +0 -0
- chatlas/types/__init__.py +5 -1
- chatlas/types/anthropic/_submit.py +24 -2
- chatlas/types/google/_client.py +12 -91
- chatlas/types/google/_submit.py +40 -87
- chatlas/types/openai/_submit.py +9 -2
- chatlas/types/snowflake/__init__.py +8 -0
- chatlas/types/snowflake/_submit.py +24 -0
- {chatlas-0.3.0.dist-info → chatlas-0.5.0.dist-info}/METADATA +35 -7
- chatlas-0.5.0.dist-info/RECORD +44 -0
- chatlas-0.3.0.dist-info/RECORD +0 -37
- {chatlas-0.3.0.dist-info → chatlas-0.5.0.dist-info}/WHEEL +0 -0
chatlas/types/google/_client.py
CHANGED
|
@@ -3,99 +3,20 @@
|
|
|
3
3
|
# ---------------------------------------------------------
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
from typing import
|
|
6
|
+
from typing import Optional, TypedDict, Union
|
|
7
7
|
|
|
8
|
-
import google.
|
|
9
|
-
import google.
|
|
10
|
-
import google.
|
|
11
|
-
import google.generativeai.types.content_types
|
|
12
|
-
import google.generativeai.types.file_types
|
|
13
|
-
import google.generativeai.types.generation_types
|
|
8
|
+
import google.auth.credentials
|
|
9
|
+
import google.genai.client
|
|
10
|
+
import google.genai.types
|
|
14
11
|
|
|
15
12
|
|
|
16
13
|
class ChatClientArgs(TypedDict, total=False):
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
google.generativeai.types.content_types.FunctionLibrary,
|
|
26
|
-
Iterable[
|
|
27
|
-
Union[
|
|
28
|
-
str,
|
|
29
|
-
google.generativeai.types.content_types.Tool,
|
|
30
|
-
google.ai.generativelanguage_v1beta.types.content.Tool,
|
|
31
|
-
google.generativeai.types.content_types.ToolDict,
|
|
32
|
-
Iterable[
|
|
33
|
-
Union[
|
|
34
|
-
google.generativeai.types.content_types.FunctionDeclaration,
|
|
35
|
-
google.ai.generativelanguage_v1beta.types.content.FunctionDeclaration,
|
|
36
|
-
dict[str, Any],
|
|
37
|
-
Callable[..., Any],
|
|
38
|
-
]
|
|
39
|
-
],
|
|
40
|
-
google.generativeai.types.content_types.FunctionDeclaration,
|
|
41
|
-
google.ai.generativelanguage_v1beta.types.content.FunctionDeclaration,
|
|
42
|
-
dict[str, Any],
|
|
43
|
-
Callable[..., Any],
|
|
44
|
-
]
|
|
45
|
-
],
|
|
46
|
-
str,
|
|
47
|
-
google.generativeai.types.content_types.Tool,
|
|
48
|
-
google.ai.generativelanguage_v1beta.types.content.Tool,
|
|
49
|
-
google.generativeai.types.content_types.ToolDict,
|
|
50
|
-
Iterable[
|
|
51
|
-
Union[
|
|
52
|
-
google.generativeai.types.content_types.FunctionDeclaration,
|
|
53
|
-
google.ai.generativelanguage_v1beta.types.content.FunctionDeclaration,
|
|
54
|
-
dict[str, Any],
|
|
55
|
-
Callable[..., Any],
|
|
56
|
-
]
|
|
57
|
-
],
|
|
58
|
-
google.generativeai.types.content_types.FunctionDeclaration,
|
|
59
|
-
google.ai.generativelanguage_v1beta.types.content.FunctionDeclaration,
|
|
60
|
-
dict[str, Any],
|
|
61
|
-
Callable[..., Any],
|
|
62
|
-
None,
|
|
63
|
-
]
|
|
64
|
-
tool_config: Union[
|
|
65
|
-
google.generativeai.types.content_types.ToolConfigDict,
|
|
66
|
-
google.ai.generativelanguage_v1beta.types.content.ToolConfig,
|
|
67
|
-
None,
|
|
68
|
-
]
|
|
69
|
-
system_instruction: Union[
|
|
70
|
-
google.ai.generativelanguage_v1beta.types.content.Content,
|
|
71
|
-
google.generativeai.types.content_types.ContentDict,
|
|
72
|
-
Iterable[
|
|
73
|
-
Union[
|
|
74
|
-
google.ai.generativelanguage_v1beta.types.content.Part,
|
|
75
|
-
google.generativeai.types.content_types.PartDict,
|
|
76
|
-
google.ai.generativelanguage_v1beta.types.content.Blob,
|
|
77
|
-
google.generativeai.types.content_types.BlobDict,
|
|
78
|
-
Any,
|
|
79
|
-
str,
|
|
80
|
-
google.ai.generativelanguage_v1beta.types.content.FunctionCall,
|
|
81
|
-
google.ai.generativelanguage_v1beta.types.content.FunctionResponse,
|
|
82
|
-
google.generativeai.types.file_types.FileDataDict,
|
|
83
|
-
google.ai.generativelanguage_v1beta.types.content.FileData,
|
|
84
|
-
google.ai.generativelanguage_v1beta.types.file.File,
|
|
85
|
-
google.generativeai.types.file_types.File,
|
|
86
|
-
]
|
|
87
|
-
],
|
|
88
|
-
google.ai.generativelanguage_v1beta.types.content.Part,
|
|
89
|
-
google.generativeai.types.content_types.PartDict,
|
|
90
|
-
google.ai.generativelanguage_v1beta.types.content.Blob,
|
|
91
|
-
google.generativeai.types.content_types.BlobDict,
|
|
92
|
-
Any,
|
|
93
|
-
str,
|
|
94
|
-
google.ai.generativelanguage_v1beta.types.content.FunctionCall,
|
|
95
|
-
google.ai.generativelanguage_v1beta.types.content.FunctionResponse,
|
|
96
|
-
google.generativeai.types.file_types.FileDataDict,
|
|
97
|
-
google.ai.generativelanguage_v1beta.types.content.FileData,
|
|
98
|
-
google.ai.generativelanguage_v1beta.types.file.File,
|
|
99
|
-
google.generativeai.types.file_types.File,
|
|
100
|
-
None,
|
|
14
|
+
vertexai: Optional[bool]
|
|
15
|
+
api_key: Optional[str]
|
|
16
|
+
credentials: Optional[google.auth.credentials.Credentials]
|
|
17
|
+
project: Optional[str]
|
|
18
|
+
location: Optional[str]
|
|
19
|
+
debug_config: Optional[google.genai.client.DebugConfig]
|
|
20
|
+
http_options: Union[
|
|
21
|
+
google.genai.types.HttpOptions, google.genai.types.HttpOptionsDict, None
|
|
101
22
|
]
|
chatlas/types/google/_submit.py
CHANGED
|
@@ -3,111 +3,64 @@
|
|
|
3
3
|
# ---------------------------------------------------------
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
from typing import
|
|
6
|
+
from typing import TypedDict, Union
|
|
7
7
|
|
|
8
|
-
import google.
|
|
9
|
-
import
|
|
10
|
-
import google.ai.generativelanguage_v1beta.types.generative_service
|
|
11
|
-
import google.generativeai.types.content_types
|
|
12
|
-
import google.generativeai.types.file_types
|
|
13
|
-
import google.generativeai.types.generation_types
|
|
14
|
-
import google.generativeai.types.helper_types
|
|
8
|
+
import google.genai.types
|
|
9
|
+
import PIL.Image
|
|
15
10
|
|
|
16
11
|
|
|
17
12
|
class SubmitInputArgs(TypedDict, total=False):
|
|
13
|
+
model: str
|
|
18
14
|
contents: Union[
|
|
19
|
-
|
|
20
|
-
google.generativeai.types.content_types.ContentDict,
|
|
21
|
-
Iterable[
|
|
15
|
+
list[
|
|
22
16
|
Union[
|
|
23
|
-
google.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
google.genai.types.Content,
|
|
18
|
+
list[
|
|
19
|
+
Union[
|
|
20
|
+
google.genai.types.File,
|
|
21
|
+
google.genai.types.Part,
|
|
22
|
+
PIL.Image.Image,
|
|
23
|
+
str,
|
|
24
|
+
]
|
|
25
|
+
],
|
|
26
|
+
google.genai.types.File,
|
|
27
|
+
google.genai.types.Part,
|
|
28
|
+
PIL.Image.Image,
|
|
28
29
|
str,
|
|
29
|
-
google.ai.generativelanguage_v1beta.types.content.FunctionCall,
|
|
30
|
-
google.ai.generativelanguage_v1beta.types.content.FunctionResponse,
|
|
31
|
-
google.generativeai.types.file_types.FileDataDict,
|
|
32
|
-
google.ai.generativelanguage_v1beta.types.content.FileData,
|
|
33
|
-
google.ai.generativelanguage_v1beta.types.file.File,
|
|
34
|
-
google.generativeai.types.file_types.File,
|
|
35
30
|
]
|
|
36
31
|
],
|
|
37
|
-
google.
|
|
38
|
-
|
|
39
|
-
google.ai.generativelanguage_v1beta.types.content.Blob,
|
|
40
|
-
google.generativeai.types.content_types.BlobDict,
|
|
41
|
-
Any,
|
|
42
|
-
str,
|
|
43
|
-
google.ai.generativelanguage_v1beta.types.content.FunctionCall,
|
|
44
|
-
google.ai.generativelanguage_v1beta.types.content.FunctionResponse,
|
|
45
|
-
google.generativeai.types.file_types.FileDataDict,
|
|
46
|
-
google.ai.generativelanguage_v1beta.types.content.FileData,
|
|
47
|
-
google.ai.generativelanguage_v1beta.types.file.File,
|
|
48
|
-
google.generativeai.types.file_types.File,
|
|
49
|
-
Iterable[
|
|
32
|
+
google.genai.types.Content,
|
|
33
|
+
list[
|
|
50
34
|
Union[
|
|
51
|
-
google.
|
|
52
|
-
google.generativeai.types.content_types.ContentDict,
|
|
35
|
+
google.genai.types.File, google.genai.types.Part, PIL.Image.Image, str
|
|
53
36
|
]
|
|
54
37
|
],
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
google.generativeai.types.generation_types.GenerationConfig,
|
|
61
|
-
None,
|
|
62
|
-
]
|
|
63
|
-
stream: bool
|
|
64
|
-
tools: Union[
|
|
65
|
-
google.generativeai.types.content_types.FunctionLibrary,
|
|
66
|
-
Iterable[
|
|
38
|
+
google.genai.types.File,
|
|
39
|
+
google.genai.types.Part,
|
|
40
|
+
PIL.Image.Image,
|
|
41
|
+
str,
|
|
42
|
+
list[
|
|
67
43
|
Union[
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
google.ai.generativelanguage_v1beta.types.content.Tool,
|
|
71
|
-
google.generativeai.types.content_types.ToolDict,
|
|
72
|
-
Iterable[
|
|
44
|
+
google.genai.types.Content,
|
|
45
|
+
list[
|
|
73
46
|
Union[
|
|
74
|
-
google.
|
|
75
|
-
google.
|
|
76
|
-
|
|
77
|
-
|
|
47
|
+
google.genai.types.File,
|
|
48
|
+
google.genai.types.Part,
|
|
49
|
+
PIL.Image.Image,
|
|
50
|
+
str,
|
|
78
51
|
]
|
|
79
52
|
],
|
|
80
|
-
google.
|
|
81
|
-
google.
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
],
|
|
86
|
-
str,
|
|
87
|
-
google.generativeai.types.content_types.Tool,
|
|
88
|
-
google.ai.generativelanguage_v1beta.types.content.Tool,
|
|
89
|
-
google.generativeai.types.content_types.ToolDict,
|
|
90
|
-
Iterable[
|
|
91
|
-
Union[
|
|
92
|
-
google.generativeai.types.content_types.FunctionDeclaration,
|
|
93
|
-
google.ai.generativelanguage_v1beta.types.content.FunctionDeclaration,
|
|
94
|
-
dict[str, Any],
|
|
95
|
-
Callable[..., Any],
|
|
53
|
+
google.genai.types.File,
|
|
54
|
+
google.genai.types.Part,
|
|
55
|
+
PIL.Image.Image,
|
|
56
|
+
str,
|
|
57
|
+
google.genai.types.ContentDict,
|
|
96
58
|
]
|
|
97
59
|
],
|
|
98
|
-
google.
|
|
99
|
-
google.ai.generativelanguage_v1beta.types.content.FunctionDeclaration,
|
|
100
|
-
dict[str, Any],
|
|
101
|
-
Callable[..., Any],
|
|
102
|
-
None,
|
|
103
|
-
]
|
|
104
|
-
tool_config: Union[
|
|
105
|
-
google.generativeai.types.content_types.ToolConfigDict,
|
|
106
|
-
google.ai.generativelanguage_v1beta.types.content.ToolConfig,
|
|
107
|
-
None,
|
|
60
|
+
google.genai.types.ContentDict,
|
|
108
61
|
]
|
|
109
|
-
|
|
110
|
-
google.
|
|
111
|
-
google.
|
|
62
|
+
config: Union[
|
|
63
|
+
google.genai.types.GenerateContentConfig,
|
|
64
|
+
google.genai.types.GenerateContentConfigDict,
|
|
112
65
|
None,
|
|
113
66
|
]
|
chatlas/types/openai/_submit.py
CHANGED
|
@@ -38,12 +38,19 @@ class SubmitInputArgs(TypedDict, total=False):
|
|
|
38
38
|
model: Union[
|
|
39
39
|
str,
|
|
40
40
|
Literal[
|
|
41
|
+
"o3-mini",
|
|
42
|
+
"o3-mini-2025-01-31",
|
|
41
43
|
"o1",
|
|
42
44
|
"o1-2024-12-17",
|
|
43
45
|
"o1-preview",
|
|
44
46
|
"o1-preview-2024-09-12",
|
|
45
47
|
"o1-mini",
|
|
46
48
|
"o1-mini-2024-09-12",
|
|
49
|
+
"computer-use-preview",
|
|
50
|
+
"computer-use-preview-2025-02-04",
|
|
51
|
+
"computer-use-preview-2025-03-11",
|
|
52
|
+
"gpt-4.5-preview",
|
|
53
|
+
"gpt-4.5-preview-2025-02-27",
|
|
47
54
|
"gpt-4o",
|
|
48
55
|
"gpt-4o-2024-11-20",
|
|
49
56
|
"gpt-4o-2024-08-06",
|
|
@@ -105,11 +112,11 @@ class SubmitInputArgs(TypedDict, total=False):
|
|
|
105
112
|
openai.NotGiven,
|
|
106
113
|
]
|
|
107
114
|
presence_penalty: Union[float, None, openai.NotGiven]
|
|
108
|
-
reasoning_effort: Union[Literal["low", "medium", "high"], openai.NotGiven]
|
|
115
|
+
reasoning_effort: Union[Literal["low", "medium", "high"], None, openai.NotGiven]
|
|
109
116
|
response_format: Union[
|
|
110
117
|
openai.types.shared_params.response_format_text.ResponseFormatText,
|
|
111
|
-
openai.types.shared_params.response_format_json_object.ResponseFormatJSONObject,
|
|
112
118
|
openai.types.shared_params.response_format_json_schema.ResponseFormatJSONSchema,
|
|
119
|
+
openai.types.shared_params.response_format_json_object.ResponseFormatJSONObject,
|
|
113
120
|
openai.NotGiven,
|
|
114
121
|
]
|
|
115
122
|
seed: Union[int, None, openai.NotGiven]
|
|
@@ -0,0 +1,8 @@
|
|
|
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",)
|
|
@@ -0,0 +1,24 @@
|
|
|
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]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: chatlas
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.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
|
|
@@ -20,9 +20,15 @@ Requires-Python: >=3.9
|
|
|
20
20
|
Requires-Dist: jinja2
|
|
21
21
|
Requires-Dist: pydantic>=2.0
|
|
22
22
|
Requires-Dist: rich
|
|
23
|
+
Provides-Extra: anthropic
|
|
24
|
+
Requires-Dist: anthropic; extra == 'anthropic'
|
|
25
|
+
Provides-Extra: azure-openai
|
|
26
|
+
Requires-Dist: openai; extra == 'azure-openai'
|
|
27
|
+
Provides-Extra: bedrock-anthropic
|
|
28
|
+
Requires-Dist: anthropic[bedrock]; extra == 'bedrock-anthropic'
|
|
23
29
|
Provides-Extra: dev
|
|
24
30
|
Requires-Dist: anthropic[bedrock]; extra == 'dev'
|
|
25
|
-
Requires-Dist: google-
|
|
31
|
+
Requires-Dist: google-genai>=1.2.0; extra == 'dev'
|
|
26
32
|
Requires-Dist: matplotlib; extra == 'dev'
|
|
27
33
|
Requires-Dist: numpy>1.24.4; extra == 'dev'
|
|
28
34
|
Requires-Dist: openai; extra == 'dev'
|
|
@@ -30,7 +36,9 @@ Requires-Dist: pillow; extra == 'dev'
|
|
|
30
36
|
Requires-Dist: python-dotenv; extra == 'dev'
|
|
31
37
|
Requires-Dist: ruff>=0.6.5; extra == 'dev'
|
|
32
38
|
Requires-Dist: shiny; extra == 'dev'
|
|
39
|
+
Requires-Dist: snowflake-ml-python; extra == 'dev'
|
|
33
40
|
Requires-Dist: tiktoken; extra == 'dev'
|
|
41
|
+
Requires-Dist: torch; (python_version <= '3.11') and extra == 'dev'
|
|
34
42
|
Provides-Extra: docs
|
|
35
43
|
Requires-Dist: griffe>=1; extra == 'docs'
|
|
36
44
|
Requires-Dist: ipykernel; extra == 'docs'
|
|
@@ -42,14 +50,32 @@ Requires-Dist: pandas; extra == 'docs'
|
|
|
42
50
|
Requires-Dist: pyyaml; extra == 'docs'
|
|
43
51
|
Requires-Dist: quartodoc>=0.7; extra == 'docs'
|
|
44
52
|
Requires-Dist: sentence-transformers; extra == 'docs'
|
|
53
|
+
Provides-Extra: github
|
|
54
|
+
Requires-Dist: openai; extra == 'github'
|
|
55
|
+
Provides-Extra: google
|
|
56
|
+
Requires-Dist: google-genai; extra == 'google'
|
|
57
|
+
Provides-Extra: groq
|
|
58
|
+
Requires-Dist: openai; extra == 'groq'
|
|
59
|
+
Provides-Extra: ollama
|
|
60
|
+
Requires-Dist: openai; extra == 'ollama'
|
|
61
|
+
Provides-Extra: openai
|
|
62
|
+
Requires-Dist: openai; extra == 'openai'
|
|
63
|
+
Provides-Extra: perplexity
|
|
64
|
+
Requires-Dist: openai; extra == 'perplexity'
|
|
65
|
+
Provides-Extra: snowflake
|
|
66
|
+
Requires-Dist: snowflake-ml-python; extra == 'snowflake'
|
|
45
67
|
Provides-Extra: test
|
|
46
68
|
Requires-Dist: pyright>=1.1.379; extra == 'test'
|
|
47
69
|
Requires-Dist: pytest-asyncio; extra == 'test'
|
|
48
70
|
Requires-Dist: pytest>=8.3.2; extra == 'test'
|
|
49
71
|
Requires-Dist: syrupy>=4; extra == 'test'
|
|
72
|
+
Provides-Extra: vertex
|
|
73
|
+
Requires-Dist: google-genai; extra == 'vertex'
|
|
50
74
|
Description-Content-Type: text/markdown
|
|
51
75
|
|
|
52
|
-
|
|
76
|
+
<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>
|
|
77
|
+
|
|
78
|
+
|
|
53
79
|
|
|
54
80
|
<p>
|
|
55
81
|
<!-- badges start -->
|
|
@@ -60,11 +86,11 @@ Description-Content-Type: text/markdown
|
|
|
60
86
|
</p>
|
|
61
87
|
|
|
62
88
|
chatlas provides a simple and unified interface across large language model (llm) providers in Python.
|
|
63
|
-
It
|
|
64
|
-
|
|
65
|
-
Developer experience is also a key focus of chatlas: typing support, rich console output, and
|
|
89
|
+
It helps you prototype faster by abstracting away complexity from common tasks like streaming chat interfaces, tool calling, structured output, and much more.
|
|
90
|
+
Switching providers is also as easy as changing one line of code, but you can also reach for provider-specific features when you need them.
|
|
91
|
+
Developer experience is also a key focus of chatlas: typing support, rich console output, and extension points are all included.
|
|
66
92
|
|
|
67
|
-
(Looking for something similar to chatlas, but in R? Check out [
|
|
93
|
+
(Looking for something similar to chatlas, but in R? Check out [ellmer](https://ellmer.tidyverse.org/)!)
|
|
68
94
|
|
|
69
95
|
## Install
|
|
70
96
|
|
|
@@ -96,6 +122,8 @@ It also supports the following enterprise cloud providers:
|
|
|
96
122
|
|
|
97
123
|
* AWS Bedrock: [`ChatBedrockAnthropic()`](https://posit-dev.github.io/chatlas/reference/ChatBedrockAnthropic.html).
|
|
98
124
|
* Azure OpenAI: [`ChatAzureOpenAI()`](https://posit-dev.github.io/chatlas/reference/ChatAzureOpenAI.html).
|
|
125
|
+
* Snowflake Cortex: [`ChatSnowflake()`](https://posit-dev.github.io/chatlas/reference/ChatSnowflake.html).
|
|
126
|
+
* Vertex AI: [`ChatVertex()`](https://posit-dev.github.io/chatlas/reference/ChatVertex.html).
|
|
99
127
|
|
|
100
128
|
To use a model provider that isn't listed here, you have two options:
|
|
101
129
|
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
chatlas/__init__.py,sha256=U-uNJWeVjMj4aSre2evTaVunabzLksZ5Toz19ygQB-o,1251
|
|
2
|
+
chatlas/_anthropic.py,sha256=-Qrq-8jgNIpW_temJYXKTb7VCl2ldnpe-KSX89L5Lhc,24264
|
|
3
|
+
chatlas/_auto.py,sha256=4tpwla09la4VA2PAh3phAMWs2Amgtp_4Qsjx6K02ib0,6032
|
|
4
|
+
chatlas/_chat.py,sha256=hS0sirnZBwMaOJ47wyNgdA61Xd7AJ_xVhj4v8RbLoHA,46014
|
|
5
|
+
chatlas/_content.py,sha256=L_ry6W5D2h6Eag2tZmqIbMP4OQj-vVXRircLcUtgQ6c,6454
|
|
6
|
+
chatlas/_content_image.py,sha256=4nk9wTvLtNmtcytdFp8p9otEV5-0_K6wzIxCyK0PIEI,8367
|
|
7
|
+
chatlas/_display.py,sha256=eqdRIwQenyJxswmTEjnJ1n9YxxSxsa8vHVmA79449_o,4439
|
|
8
|
+
chatlas/_github.py,sha256=8_vvUIBCprgrQ5UItky5yETfEQPG2fCMM57ga77p28E,4377
|
|
9
|
+
chatlas/_google.py,sha256=ehL8hf8Hogg9qK9OaXqiWainOirz21yy_lx_yvUwKf8,18831
|
|
10
|
+
chatlas/_groq.py,sha256=iuFvxeXkq81sDHxVV9zbVHjf2ZuNT94P-XkuXvqtGms,4160
|
|
11
|
+
chatlas/_interpolate.py,sha256=ykwLP3x-ya9Q33U4knSU75dtk6pzJAeythEEIW-43Pc,3631
|
|
12
|
+
chatlas/_live_render.py,sha256=UMZltE35LxziDKPMEeDwQ9meZ95SeqwhJi7j-y9pcro,4004
|
|
13
|
+
chatlas/_logging.py,sha256=7a20sAl1PkW1qBNrfd_ieUbQXV8Gf4Vuf0Wn62LNBmk,2290
|
|
14
|
+
chatlas/_merge.py,sha256=SGj_BetgA7gaOqSBKOhYmW3CYeQKTEehFrXvx3y4OYE,3924
|
|
15
|
+
chatlas/_ollama.py,sha256=EgTwmphVwBV7xCIqmPC_cNlr4Uo9N5Xy4eDCb1sJoPI,3764
|
|
16
|
+
chatlas/_openai.py,sha256=9KB4hEh6acFfBvLV0yXwLcjP-CyIpsMbbVt7eJ03_Vg,23870
|
|
17
|
+
chatlas/_perplexity.py,sha256=j-jfOIYefZC5XzGjmya9GCCGQN003cRmiAv6vmo0rTQ,4454
|
|
18
|
+
chatlas/_provider.py,sha256=YmdBbz_u5aP_kBxl6s26OPiSnWG_vZ_fvf9L2qvBmyI,3809
|
|
19
|
+
chatlas/_snowflake.py,sha256=WUNdT3irxgLVqoc1TAeDmxnYsjBWiBw-CoH-dY4mFps,10944
|
|
20
|
+
chatlas/_tokens.py,sha256=3W3EPUp9eWXUiwuzJwEPBv43AUznbK46pm59Htti7z4,2392
|
|
21
|
+
chatlas/_tokens_old.py,sha256=L9d9oafrXvEx2u4nIn_Jjn7adnQyLBnYBuPwJUE8Pl8,5005
|
|
22
|
+
chatlas/_tools.py,sha256=-qt4U1AFkebQoX9kpsBy5QXK8a2PpHX6Amgm44gcQ68,4113
|
|
23
|
+
chatlas/_turn.py,sha256=nKwk20FrOIrZX4xJxdGyUEpwUH2H-UYcoJLlO2ZD5iU,4836
|
|
24
|
+
chatlas/_typing_extensions.py,sha256=YdzmlyPSBpIEcsOkoz12e6jETT1XEMV2Q72haE4cfwY,1036
|
|
25
|
+
chatlas/_utils.py,sha256=2TPy5_8dr9QDF1YShZN-CjxRVHeArSujRiaF0SKnI4o,2895
|
|
26
|
+
chatlas/_version.py,sha256=N2U3TRgLfYxjXfoF4Dy9PxAbZq24zjCym3P3cwuxKP8,511
|
|
27
|
+
chatlas/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
28
|
+
chatlas/types/__init__.py,sha256=P_EDL4eqsigKwB-u2qRmKlYQS5Y65m7oWjGC3cYmxO4,719
|
|
29
|
+
chatlas/types/anthropic/__init__.py,sha256=OwubA-DPHYpYo0XyRyAFwftOI0mOxtHzAyhUSLcDx54,417
|
|
30
|
+
chatlas/types/anthropic/_client.py,sha256=G0LRhoFBcsSOMr5qhP-0rAScsVXaVlHCpggfVp54bnQ,690
|
|
31
|
+
chatlas/types/anthropic/_client_bedrock.py,sha256=mNazQlu0pQt8JdzrYn3LKNgE4n732GjhQUJdQQK9QkY,785
|
|
32
|
+
chatlas/types/anthropic/_submit.py,sha256=xoQyZ3SUUttWDPAjZTPfFch7D1bIU0AJNsenViYhAKs,2974
|
|
33
|
+
chatlas/types/google/__init__.py,sha256=ZJhi8Kwvio2zp8T1TQqmvdHqkS-Khb6BGESPjREADgo,337
|
|
34
|
+
chatlas/types/google/_client.py,sha256=t7aKbxYq_xOA1Z3RnWcjewifdQFSHi7vKEj6MyKMCJk,729
|
|
35
|
+
chatlas/types/google/_submit.py,sha256=b-ZqMvI551Ia7pFlWdqUQJjov3neHmVwLFw-P2bgU8w,1883
|
|
36
|
+
chatlas/types/openai/__init__.py,sha256=Q2RAr1bSH1nHsxICK05nAmKmxdhKmhbBkWD_XHiVSrI,411
|
|
37
|
+
chatlas/types/openai/_client.py,sha256=YGm_EHtRSSHeeOZe-CV7oNvMJpEblEta3UTuU7lSRO8,754
|
|
38
|
+
chatlas/types/openai/_client_azure.py,sha256=jx8D_p46CLDGzTP-k-TtGzj-f3junj6or-86m8DD_0w,858
|
|
39
|
+
chatlas/types/openai/_submit.py,sha256=pJ6_G5R3ouI17-20fvjv0pzs_VizTlMbrBx7GXiOpNs,6294
|
|
40
|
+
chatlas/types/snowflake/__init__.py,sha256=NVKw_gLVnSlMNdE6BpikrQw8GV8LvIn5SR8eI8Afgbs,273
|
|
41
|
+
chatlas/types/snowflake/_submit.py,sha256=Fgcb2Z4mXYwAR2b7Kn3SdEYFlO4gJiUvkDJ3lDoN0IY,799
|
|
42
|
+
chatlas-0.5.0.dist-info/METADATA,sha256=ObTTRN6dDvUuAWuW07VDvkvwbRbeMlH6AwRvLmVFDvM,14409
|
|
43
|
+
chatlas-0.5.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
44
|
+
chatlas-0.5.0.dist-info/RECORD,,
|
chatlas-0.3.0.dist-info/RECORD
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
chatlas/__init__.py,sha256=OJbTO71ne1O9SDxkwIKOMpCMKbh0T8eDpYPFhrAb28A,974
|
|
2
|
-
chatlas/_anthropic.py,sha256=ssv6k-XZetwv1hNk7Qs8dAWlcPvElzxjrG0Fh2w50xE,24373
|
|
3
|
-
chatlas/_chat.py,sha256=p_MS1LQ-EBlvCzGTbjY5Bdlt1meDsfSbP517blkwSjY,44774
|
|
4
|
-
chatlas/_content.py,sha256=vpWF_WKS2tCDUtnL8l9lfW6b6g9e7LbDKP-_TegauVE,5883
|
|
5
|
-
chatlas/_content_image.py,sha256=4nk9wTvLtNmtcytdFp8p9otEV5-0_K6wzIxCyK0PIEI,8367
|
|
6
|
-
chatlas/_display.py,sha256=_IcQcvpyTNjGHOpY70_LOrDWwTjzdkziy6pTvxHEiWI,4053
|
|
7
|
-
chatlas/_github.py,sha256=D3L7Qu35K-M1qEW7-w-Oq-pF-9mVetia3MHYNNLEYtU,4373
|
|
8
|
-
chatlas/_google.py,sha256=jfBp_C_qjbvs48QPE_ykSsfRhjz7htb-G389qLxvSC4,15279
|
|
9
|
-
chatlas/_groq.py,sha256=3VnYiKdxJTHPhEgUKnL2nY5uYL2L4PKBo7GZMwR0D8k,4158
|
|
10
|
-
chatlas/_interpolate.py,sha256=ykwLP3x-ya9Q33U4knSU75dtk6pzJAeythEEIW-43Pc,3631
|
|
11
|
-
chatlas/_logging.py,sha256=7a20sAl1PkW1qBNrfd_ieUbQXV8Gf4Vuf0Wn62LNBmk,2290
|
|
12
|
-
chatlas/_merge.py,sha256=Xt2uutLdEmYAGfGCa8GCEd8sdNadQM5o3l-zuIQFbWU,3923
|
|
13
|
-
chatlas/_ollama.py,sha256=ze-RoHEbf62dYmXDDKjNGqaEZaKCZdcBEyFwQMDQxkQ,3760
|
|
14
|
-
chatlas/_openai.py,sha256=nJgp3JJlpxeXn_dhIrXNffQk9vh3ycYy1D2fNip0qEs,24004
|
|
15
|
-
chatlas/_perplexity.py,sha256=Bw_mlM8N8egGKIrbNerTn2pMlybugADOshjYOfN1ixM,4446
|
|
16
|
-
chatlas/_provider.py,sha256=i16I2hkBat1fYEMcFsU0gYNr6Tcg8zJ2xHDnEY7WRY4,4009
|
|
17
|
-
chatlas/_tokens.py,sha256=3W3EPUp9eWXUiwuzJwEPBv43AUznbK46pm59Htti7z4,2392
|
|
18
|
-
chatlas/_tokens_old.py,sha256=L9d9oafrXvEx2u4nIn_Jjn7adnQyLBnYBuPwJUE8Pl8,5005
|
|
19
|
-
chatlas/_tools.py,sha256=-qt4U1AFkebQoX9kpsBy5QXK8a2PpHX6Amgm44gcQ68,4113
|
|
20
|
-
chatlas/_turn.py,sha256=nKwk20FrOIrZX4xJxdGyUEpwUH2H-UYcoJLlO2ZD5iU,4836
|
|
21
|
-
chatlas/_typing_extensions.py,sha256=YdzmlyPSBpIEcsOkoz12e6jETT1XEMV2Q72haE4cfwY,1036
|
|
22
|
-
chatlas/_utils.py,sha256=qAiWuDx-uG8BGFZ_PWvum9wpN-WogdItO32X4pRhhLs,2762
|
|
23
|
-
chatlas/types/__init__.py,sha256=pgHl8pd2Ytskd6lkfNtm98Yj1ZP0b3R35RH4Uht2BAs,694
|
|
24
|
-
chatlas/types/anthropic/__init__.py,sha256=OwubA-DPHYpYo0XyRyAFwftOI0mOxtHzAyhUSLcDx54,417
|
|
25
|
-
chatlas/types/anthropic/_client.py,sha256=G0LRhoFBcsSOMr5qhP-0rAScsVXaVlHCpggfVp54bnQ,690
|
|
26
|
-
chatlas/types/anthropic/_client_bedrock.py,sha256=mNazQlu0pQt8JdzrYn3LKNgE4n732GjhQUJdQQK9QkY,785
|
|
27
|
-
chatlas/types/anthropic/_submit.py,sha256=BhkJu0OhIMiD3qiUNqJ4litBQCW-7KRr_YZp9Xr9KGA,2091
|
|
28
|
-
chatlas/types/google/__init__.py,sha256=ZJhi8Kwvio2zp8T1TQqmvdHqkS-Khb6BGESPjREADgo,337
|
|
29
|
-
chatlas/types/google/_client.py,sha256=YA5hsT-m-KcONKtwpCULYMnGwMPfkScpvhjx_qBLg5o,4421
|
|
30
|
-
chatlas/types/google/_submit.py,sha256=yp1wtp5eScLlHDNxeXl0qJOKv7SWLnRQ8oslupRFUBE,4839
|
|
31
|
-
chatlas/types/openai/__init__.py,sha256=Q2RAr1bSH1nHsxICK05nAmKmxdhKmhbBkWD_XHiVSrI,411
|
|
32
|
-
chatlas/types/openai/_client.py,sha256=YGm_EHtRSSHeeOZe-CV7oNvMJpEblEta3UTuU7lSRO8,754
|
|
33
|
-
chatlas/types/openai/_client_azure.py,sha256=jx8D_p46CLDGzTP-k-TtGzj-f3junj6or-86m8DD_0w,858
|
|
34
|
-
chatlas/types/openai/_submit.py,sha256=f2o3rNJZcWBhwjomXrs3Mh0V_4vNa9N5eEBkMvJDofQ,6028
|
|
35
|
-
chatlas-0.3.0.dist-info/METADATA,sha256=eIPyvdcXpYN4s6txY5GMgBttUsmS5868D10U5zzTchs,13164
|
|
36
|
-
chatlas-0.3.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
37
|
-
chatlas-0.3.0.dist-info/RECORD,,
|
|
File without changes
|