athena-intelligence 0.1.31__py3-none-any.whl → 0.1.33__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.
- athena/core/client_wrapper.py +1 -1
- athena/message/client.py +4 -4
- athena/types/model.py +24 -0
- {athena_intelligence-0.1.31.dist-info → athena_intelligence-0.1.33.dist-info}/METADATA +1 -1
- {athena_intelligence-0.1.31.dist-info → athena_intelligence-0.1.33.dist-info}/RECORD +6 -6
- {athena_intelligence-0.1.31.dist-info → athena_intelligence-0.1.33.dist-info}/WHEEL +0 -0
athena/core/client_wrapper.py
CHANGED
@@ -16,7 +16,7 @@ class BaseClientWrapper:
|
|
16
16
|
headers: typing.Dict[str, str] = {
|
17
17
|
"X-Fern-Language": "Python",
|
18
18
|
"X-Fern-SDK-Name": "athena-intelligence",
|
19
|
-
"X-Fern-SDK-Version": "0.1.
|
19
|
+
"X-Fern-SDK-Version": "0.1.33",
|
20
20
|
}
|
21
21
|
headers["X-API-KEY"] = self.api_key
|
22
22
|
return headers
|
athena/message/client.py
CHANGED
@@ -61,8 +61,8 @@ class MessageClient:
|
|
61
61
|
)
|
62
62
|
client.message.submit(
|
63
63
|
content="visit www.athenaintelligence.ai and summarize the website in one paragraph",
|
64
|
-
model=Model.
|
65
|
-
tools=[Tools.SEARCH, Tools.BROWSE
|
64
|
+
model=Model.GPT_35_TURBO,
|
65
|
+
tools=[Tools.SEARCH, Tools.BROWSE],
|
66
66
|
)
|
67
67
|
"""
|
68
68
|
_request: typing.Dict[str, typing.Any] = {"content": content}
|
@@ -193,8 +193,8 @@ class AsyncMessageClient:
|
|
193
193
|
)
|
194
194
|
await client.message.submit(
|
195
195
|
content="visit www.athenaintelligence.ai and summarize the website in one paragraph",
|
196
|
-
model=Model.
|
197
|
-
tools=[Tools.SEARCH, Tools.BROWSE
|
196
|
+
model=Model.GPT_35_TURBO,
|
197
|
+
tools=[Tools.SEARCH, Tools.BROWSE],
|
198
198
|
)
|
199
199
|
"""
|
200
200
|
_request: typing.Dict[str, typing.Any] = {"content": content}
|
athena/types/model.py
CHANGED
@@ -16,6 +16,12 @@ class Model(str, enum.Enum):
|
|
16
16
|
GPT_4 = "gpt-4"
|
17
17
|
MIXTRAL_SMALL_8_X_7_B_0211 = "mixtral-small-8x7b-0211"
|
18
18
|
MISTRAL_LARGE_0224 = "mistral-large-0224"
|
19
|
+
LLAMA_V_270_B_CHAT = "llama-v2-70b-chat"
|
20
|
+
CLAUDE_3_OPUS_20240229 = "claude-3-opus-20240229"
|
21
|
+
CLAUDE_3_SONNET_20240229 = "claude-3-sonnet-20240229"
|
22
|
+
CLAUDE_3_HAIKU_20240307 = "claude-3-haiku-20240307"
|
23
|
+
GOOGLE_GEMINI_10_PRO_LATEST = "google-gemini-1.0-pro-latest"
|
24
|
+
DATABRICKS_DBRX = "databricks-dbrx"
|
19
25
|
|
20
26
|
def visit(
|
21
27
|
self,
|
@@ -24,6 +30,12 @@ class Model(str, enum.Enum):
|
|
24
30
|
gpt_4: typing.Callable[[], T_Result],
|
25
31
|
mixtral_small_8_x_7_b_0211: typing.Callable[[], T_Result],
|
26
32
|
mistral_large_0224: typing.Callable[[], T_Result],
|
33
|
+
llama_v_270_b_chat: typing.Callable[[], T_Result],
|
34
|
+
claude_3_opus_20240229: typing.Callable[[], T_Result],
|
35
|
+
claude_3_sonnet_20240229: typing.Callable[[], T_Result],
|
36
|
+
claude_3_haiku_20240307: typing.Callable[[], T_Result],
|
37
|
+
google_gemini_10_pro_latest: typing.Callable[[], T_Result],
|
38
|
+
databricks_dbrx: typing.Callable[[], T_Result],
|
27
39
|
) -> T_Result:
|
28
40
|
if self is Model.GPT_35_TURBO:
|
29
41
|
return gpt_35_turbo()
|
@@ -35,3 +47,15 @@ class Model(str, enum.Enum):
|
|
35
47
|
return mixtral_small_8_x_7_b_0211()
|
36
48
|
if self is Model.MISTRAL_LARGE_0224:
|
37
49
|
return mistral_large_0224()
|
50
|
+
if self is Model.LLAMA_V_270_B_CHAT:
|
51
|
+
return llama_v_270_b_chat()
|
52
|
+
if self is Model.CLAUDE_3_OPUS_20240229:
|
53
|
+
return claude_3_opus_20240229()
|
54
|
+
if self is Model.CLAUDE_3_SONNET_20240229:
|
55
|
+
return claude_3_sonnet_20240229()
|
56
|
+
if self is Model.CLAUDE_3_HAIKU_20240307:
|
57
|
+
return claude_3_haiku_20240307()
|
58
|
+
if self is Model.GOOGLE_GEMINI_10_PRO_LATEST:
|
59
|
+
return google_gemini_10_pro_latest()
|
60
|
+
if self is Model.DATABRICKS_DBRX:
|
61
|
+
return databricks_dbrx()
|
@@ -3,7 +3,7 @@ athena/base_client.py,sha256=0V7k8HeQrYl1dK2lni53I0EkrmMwFiTVW5Pdt-fScuE,4806
|
|
3
3
|
athena/client.py,sha256=8QypiDlbZ0C1YsJh6GzhylLVCZXDQc1MCJTURo2_vvI,3576
|
4
4
|
athena/core/__init__.py,sha256=RWfyDqkzWsf8e3VGc3NV60MovfJbg5XWzNFGB2DZ0hA,790
|
5
5
|
athena/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
6
|
-
athena/core/client_wrapper.py,sha256=
|
6
|
+
athena/core/client_wrapper.py,sha256=VBjHF6uPLJOCMUri_dfWQE7iTUfsNCShd2zjDPvCLI8,1198
|
7
7
|
athena/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
8
8
|
athena/core/file.py,sha256=sy1RUGZ3aJYuw998bZytxxo6QdgKmlnlgBaMvwEKCGg,1480
|
9
9
|
athena/core/http_client.py,sha256=LI0yP3jUyE0Ue7oyBcI9nyo1pljOwh9Y5ycTeIpKwOg,4882
|
@@ -16,7 +16,7 @@ athena/environment.py,sha256=D_CljQlUahhEi9smvMslj_5Y8gMFO6D0fRCL0ydRLuM,165
|
|
16
16
|
athena/errors/__init__.py,sha256=pbbVUFtB9LCocA1RMWMMF_RKjsy5YkOKX5BAuE49w6g,170
|
17
17
|
athena/errors/unprocessable_entity_error.py,sha256=FvR7XPlV3Xx5nu8HNlmLhBRdk4so_gCHjYT5PyZe6sM,313
|
18
18
|
athena/message/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
19
|
-
athena/message/client.py,sha256=
|
19
|
+
athena/message/client.py,sha256=NT0E6j-LsjZygrjEzn-Bcy8T_Q_ayNK0jR6z3hQjcnI,12185
|
20
20
|
athena/polling_message_client.py,sha256=dmmycImvog2niEFFPo4rE5xMJHUlq9NqAr4xlFK6_Os,3998
|
21
21
|
athena/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
22
|
athena/query/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
@@ -32,7 +32,7 @@ athena/types/get_snippets_response.py,sha256=Lpn7bHJLpPQozN93unCV-8eByAAfz1MhQWR
|
|
32
32
|
athena/types/http_validation_error.py,sha256=Fcv_CTMMrLvCeTHjF0n5xf5tskMDgt-J6H9gp654eQw,973
|
33
33
|
athena/types/message_out.py,sha256=uvZY_Podv2XccEk8CICug9I_S2hFJTSzCBwcHiauW7A,865
|
34
34
|
athena/types/message_out_dto.py,sha256=qgRibRbDNOWVnVGP7Rribh9WdoCT2CSiPUXeIWECqq4,1051
|
35
|
-
athena/types/model.py,sha256=
|
35
|
+
athena/types/model.py,sha256=w-JHrWXHgMpCtrptPzeHgG8fu9Hle-QmmLP4RG6dCdc,2390
|
36
36
|
athena/types/report.py,sha256=QVaqVfHMAV3s9_V2CqjIEMcRrbJhD8zmi82vrk2A8x0,946
|
37
37
|
athena/types/snippet.py,sha256=POIVJNV9iQxiVegB_qwQx-PZPPSyoIPhyxTsueNVUGA,1126
|
38
38
|
athena/types/sql_results.py,sha256=pNH32nyf1bzoYJs3FgHctLdLO02oOjyGgLkHACACB6k,900
|
@@ -40,6 +40,6 @@ athena/types/status_enum.py,sha256=0UZbhdAx215GHC-U53RS98mYHtn1N3On4VBe4j02Qtc,6
|
|
40
40
|
athena/types/tools.py,sha256=Vfb-D9CYcPZH6MBATNODgfXjFyBpCs4qbkqpCMl7eBM,1277
|
41
41
|
athena/types/validation_error.py,sha256=2JhGNJouo8QpfrMBoT_JCwYSn1nFN2Nnq0p9uPLDH-U,992
|
42
42
|
athena/types/validation_error_loc_item.py,sha256=LAtjCHIllWRBFXvAZ5QZpp7CPXjdtN9EB7HrLVo6EP0,128
|
43
|
-
athena_intelligence-0.1.
|
44
|
-
athena_intelligence-0.1.
|
45
|
-
athena_intelligence-0.1.
|
43
|
+
athena_intelligence-0.1.33.dist-info/METADATA,sha256=SmQ1tqzbjpOmwbjVYkyvbdiC9RG-xAJQIKWIokqG7QI,4738
|
44
|
+
athena_intelligence-0.1.33.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
45
|
+
athena_intelligence-0.1.33.dist-info/RECORD,,
|
File without changes
|