maitai-python 1.0.29b0__tar.gz → 1.0.30b0__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.0.29b0 → maitai_python-1.0.30b0}/PKG-INFO +1 -1
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai/_config.py +1 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai/_openai.py +1 -1
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai/_openai_async.py +1 -1
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_common/config/config_service.py +4 -7
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_common/version.py +1 -1
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_gen/chat/__init__.py +1 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_python.egg-info/PKG-INFO +1 -1
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/README.md +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai/__init__.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai/_azure.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai/_config_listener_thread.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai/_context.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai/_evaluator.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai/_inference.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai/_maitai_client.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai/_openai_types.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai/_utils.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_common/__init__.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_common/config/__init__.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_common/processes/__init__.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_common/processes/io_thread.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_common/processes/websocket_listener_thread.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_common/utils/__init__.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_common/utils/proto_utils.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_common/utils/types.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_gen/__init__.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_gen/application/__init__.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_gen/company/__init__.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_gen/config/__init__.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_gen/embedding/__init__.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_gen/inference/__init__.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_gen/key/__init__.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_gen/notification/__init__.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_gen/sandbox/__init__.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_gen/sentinel/__init__.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_gen/session/__init__.py +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_python.egg-info/SOURCES.txt +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_python.egg-info/dependency_links.txt +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_python.egg-info/requires.txt +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_python.egg-info/top_level.txt +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/setup.cfg +0 -0
- {maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/setup.py +0 -0
|
@@ -26,6 +26,7 @@ class Config:
|
|
|
26
26
|
self.auth_keys: KeyMap = KeyMap(
|
|
27
27
|
openai_api_key=Key(id=-1, key_value=os.environ.get("OPENAI_API_KEY")),
|
|
28
28
|
groq_api_key=Key(id=-1, key_value=os.environ.get("GROQ_API_KEY")),
|
|
29
|
+
anthropic_api_key=Key(id=-1, key_value=os.environ.get("ANTHROPIC_API_KEY")),
|
|
29
30
|
)
|
|
30
31
|
|
|
31
32
|
@property
|
|
@@ -320,5 +320,5 @@ def _process_inference_stream(stream: Iterable[InferenceStreamResponse]) -> Iter
|
|
|
320
320
|
chunk = infer_resp.chat_completion_chunk
|
|
321
321
|
if chunk is not None:
|
|
322
322
|
yield chunk
|
|
323
|
-
if chunk.choices[0].finish_reason:
|
|
323
|
+
if chunk.choices and chunk.choices[0].finish_reason:
|
|
324
324
|
return
|
|
@@ -327,5 +327,5 @@ async def _process_inference_stream_async(stream: AsyncIterable[InferenceStreamR
|
|
|
327
327
|
chunk = infer_resp.chat_completion_chunk
|
|
328
328
|
if chunk is not None:
|
|
329
329
|
yield chunk
|
|
330
|
-
if chunk.choices[0].finish_reason:
|
|
330
|
+
if chunk.choices and chunk.choices[0].finish_reason:
|
|
331
331
|
return
|
|
@@ -13,15 +13,12 @@ MODELS = {
|
|
|
13
13
|
"gpt-4o-2024-05-13": "openai",
|
|
14
14
|
"gpt-4-turbo": "openai",
|
|
15
15
|
"gpt-4-turbo-2024-04-09": "openai",
|
|
16
|
-
"gpt-4-0125-preview": "openai",
|
|
17
|
-
"gpt-4-turbo-preview": "openai",
|
|
18
|
-
"gpt-4-1106-preview": "openai",
|
|
19
16
|
"gpt-4": "openai",
|
|
20
|
-
"gpt-4-0613": "openai",
|
|
21
17
|
"gpt-3.5-turbo": "openai",
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
18
|
+
"claude-3-5-sonnet-20240620": "anthropic",
|
|
19
|
+
"claude-3-opus-20240229": "anthropic",
|
|
20
|
+
"claude-3-sonnet-20240229": "anthropic",
|
|
21
|
+
"claude-3-haiku-20240307": "anthropic"
|
|
25
22
|
}
|
|
26
23
|
|
|
27
24
|
DEFAULT_CLIENT_MODEL = "gpt-4o"
|
|
@@ -67,6 +67,7 @@ class ChatCompletionAuth(betterproto.Message):
|
|
|
67
67
|
openai_api_key: str = betterproto.string_field(1)
|
|
68
68
|
groq_api_key: str = betterproto.string_field(2)
|
|
69
69
|
override_api_key: str = betterproto.string_field(3)
|
|
70
|
+
anthropic_api_key: str = betterproto.string_field(4)
|
|
70
71
|
|
|
71
72
|
|
|
72
73
|
@dataclass(eq=False, repr=False)
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maitai_python-1.0.29b0 → maitai_python-1.0.30b0}/maitai_python.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|