maitai-python 1.1.34__tar.gz → 1.1.35__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.
- {maitai_python-1.1.34 → maitai_python-1.1.35}/PKG-INFO +1 -1
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai/_config.py +1 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai/_utils.py +6 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_common/version.py +1 -1
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_gen/chat/__init__.py +4 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_gen/key/__init__.py +2 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_python.egg-info/PKG-INFO +1 -1
- {maitai_python-1.1.34 → maitai_python-1.1.35}/README.md +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai/__init__.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai/_azure.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai/_config_listener_thread.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai/_context.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai/_evaluator.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai/_inference.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai/_maitai.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai/_maitai_async.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai/_maitai_client.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai/_types.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai/tools/__init__.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_common/__init__.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_common/config/__init__.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_common/config/config_service.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_common/processes/__init__.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_common/processes/io_thread.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_common/processes/websocket_listener_thread.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_common/utils/__init__.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_common/utils/proto_utils.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_common/utils/types.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_gen/__init__.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_gen/annotation/__init__.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_gen/application/__init__.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_gen/backtest/__init__.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_gen/billing/__init__.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_gen/company/__init__.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_gen/config/__init__.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_gen/embedding/__init__.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_gen/event/__init__.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_gen/inference/__init__.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_gen/metric/__init__.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_gen/model/__init__.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_gen/notification/__init__.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_gen/rates/__init__.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_gen/sandbox/__init__.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_gen/sentinel/__init__.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_gen/session/__init__.py +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_python.egg-info/SOURCES.txt +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_python.egg-info/dependency_links.txt +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_python.egg-info/requires.txt +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_python.egg-info/top_level.txt +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/setup.cfg +0 -0
- {maitai_python-1.1.34 → maitai_python-1.1.35}/setup.py +0 -0
|
@@ -95,6 +95,7 @@ class Config:
|
|
|
95
95
|
openai_api_key=Key(id=-1, key_value=os.environ.get("OPENAI_API_KEY")),
|
|
96
96
|
groq_api_key=Key(id=-1, key_value=os.environ.get("GROQ_API_KEY")),
|
|
97
97
|
anthropic_api_key=Key(id=-1, key_value=os.environ.get("ANTHROPIC_API_KEY")),
|
|
98
|
+
cerebras_api_key=Key(id=-1, key_value=os.environ.get("CEREBRAS_API_KEY")),
|
|
98
99
|
)
|
|
99
100
|
self.refresh_timer = None
|
|
100
101
|
self.refresh_interval = 300 # 5 minutes in seconds
|
|
@@ -213,6 +213,12 @@ def get_chat_completion_params(
|
|
|
213
213
|
type=property_value.get("type"),
|
|
214
214
|
description=property_value.get("description"),
|
|
215
215
|
)
|
|
216
|
+
if property_value.get("items"):
|
|
217
|
+
properties[
|
|
218
|
+
property_name
|
|
219
|
+
].items = chat_types.FunctionParameters().from_dict(
|
|
220
|
+
property_value.get("items")
|
|
221
|
+
)
|
|
216
222
|
else:
|
|
217
223
|
properties[property_name] = property_value
|
|
218
224
|
params.tools.append(
|
|
@@ -96,6 +96,7 @@ class ChatCompletionAuth(betterproto.Message):
|
|
|
96
96
|
groq_api_key: str = betterproto.string_field(2)
|
|
97
97
|
override_api_key: str = betterproto.string_field(3)
|
|
98
98
|
anthropic_api_key: str = betterproto.string_field(4)
|
|
99
|
+
cerebras_api_key: str = betterproto.string_field(5)
|
|
99
100
|
|
|
100
101
|
|
|
101
102
|
@dataclass(eq=False, repr=False)
|
|
@@ -166,6 +167,9 @@ class FunctionParameters(betterproto.Message):
|
|
|
166
167
|
class Property(betterproto.Message):
|
|
167
168
|
type: str = betterproto.string_field(1)
|
|
168
169
|
description: str = betterproto.string_field(2)
|
|
170
|
+
items: Optional["FunctionParameters"] = betterproto.message_field(
|
|
171
|
+
3, optional=True, group="_items"
|
|
172
|
+
)
|
|
169
173
|
|
|
170
174
|
|
|
171
175
|
@dataclass(eq=False, repr=False)
|
|
@@ -29,6 +29,7 @@ class KeyIdMap(betterproto.Message):
|
|
|
29
29
|
openai_api_key: int = betterproto.int64_field(1)
|
|
30
30
|
groq_api_key: int = betterproto.int64_field(2)
|
|
31
31
|
anthropic_api_key: int = betterproto.int64_field(3)
|
|
32
|
+
cerebras_api_key: int = betterproto.int64_field(4)
|
|
32
33
|
|
|
33
34
|
|
|
34
35
|
@dataclass(eq=False, repr=False)
|
|
@@ -36,3 +37,4 @@ class KeyMap(betterproto.Message):
|
|
|
36
37
|
openai_api_key: "Key" = betterproto.message_field(1)
|
|
37
38
|
groq_api_key: "Key" = betterproto.message_field(2)
|
|
38
39
|
anthropic_api_key: "Key" = betterproto.message_field(3)
|
|
40
|
+
cerebras_api_key: "Key" = betterproto.message_field(4)
|
|
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
|
{maitai_python-1.1.34 → maitai_python-1.1.35}/maitai_common/processes/websocket_listener_thread.py
RENAMED
|
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
|