maitai-python 1.0.30__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.
Files changed (43) hide show
  1. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/PKG-INFO +1 -1
  2. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai/_config.py +1 -0
  3. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai/_openai.py +1 -1
  4. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai/_openai_async.py +1 -1
  5. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_common/config/config_service.py +4 -7
  6. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_common/version.py +1 -1
  7. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_gen/chat/__init__.py +1 -0
  8. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_python.egg-info/PKG-INFO +1 -1
  9. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/README.md +0 -0
  10. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai/__init__.py +0 -0
  11. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai/_azure.py +0 -0
  12. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai/_config_listener_thread.py +0 -0
  13. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai/_context.py +0 -0
  14. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai/_evaluator.py +0 -0
  15. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai/_inference.py +0 -0
  16. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai/_maitai_client.py +0 -0
  17. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai/_openai_types.py +0 -0
  18. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai/_utils.py +0 -0
  19. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_common/__init__.py +0 -0
  20. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_common/config/__init__.py +0 -0
  21. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_common/processes/__init__.py +0 -0
  22. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_common/processes/io_thread.py +0 -0
  23. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_common/processes/websocket_listener_thread.py +0 -0
  24. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_common/utils/__init__.py +0 -0
  25. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_common/utils/proto_utils.py +0 -0
  26. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_common/utils/types.py +0 -0
  27. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_gen/__init__.py +0 -0
  28. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_gen/application/__init__.py +0 -0
  29. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_gen/company/__init__.py +0 -0
  30. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_gen/config/__init__.py +0 -0
  31. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_gen/embedding/__init__.py +0 -0
  32. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_gen/inference/__init__.py +0 -0
  33. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_gen/key/__init__.py +0 -0
  34. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_gen/notification/__init__.py +0 -0
  35. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_gen/sandbox/__init__.py +0 -0
  36. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_gen/sentinel/__init__.py +0 -0
  37. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_gen/session/__init__.py +0 -0
  38. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_python.egg-info/SOURCES.txt +0 -0
  39. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_python.egg-info/dependency_links.txt +0 -0
  40. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_python.egg-info/requires.txt +0 -0
  41. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/maitai_python.egg-info/top_level.txt +0 -0
  42. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/setup.cfg +0 -0
  43. {maitai_python-1.0.30 → maitai_python-1.0.30b0}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: maitai-python
3
- Version: 1.0.30
3
+ Version: 1.0.30b0
4
4
  Summary: Maitai SDK for Python
5
5
  Home-page: https://docs.trymaitai.ai
6
6
  Author: Maitai
@@ -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
- "gpt-3.5-turbo-16k": "openai",
23
- "gpt-3.5-turbo-1106": "openai",
24
- "gpt-3.5-turbo-0125": "openai",
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"
@@ -1,3 +1,3 @@
1
- version = "1.0.30"
1
+ version = "1.0.30b0"
2
2
  if __name__ == "__main__":
3
3
  print(version)
@@ -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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: maitai-python
3
- Version: 1.0.30
3
+ Version: 1.0.30b0
4
4
  Summary: Maitai SDK for Python
5
5
  Home-page: https://docs.trymaitai.ai
6
6
  Author: Maitai