holmesgpt 0.12.0__py3-none-any.whl → 0.12.0a0__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 holmesgpt might be problematic. Click here for more details.

holmes/__init__.py CHANGED
@@ -9,7 +9,7 @@ this_path = os.path.dirname(os.path.realpath(__file__))
9
9
  sys.path.append(this_path)
10
10
 
11
11
  # This is patched by github actions during release
12
- __version__ = "0.12.0"
12
+ __version__ = "0.12.0-alpha"
13
13
 
14
14
 
15
15
  def is_official_release() -> bool:
holmes/config.py CHANGED
@@ -39,6 +39,7 @@ DEFAULT_CONFIG_LOCATION = os.path.expanduser("~/.holmes/config.yaml")
39
39
  MODEL_LIST_FILE_LOCATION = os.environ.get(
40
40
  "MODEL_LIST_FILE_LOCATION", "/etc/holmes/config/model_list.yaml"
41
41
  )
42
+ ROBUSTA_AI_MODEL_NAME = "Robusta"
42
43
 
43
44
 
44
45
  class SupportedTicketSources(str, Enum):
@@ -151,7 +152,7 @@ class Config(RobustaBaseConfig):
151
152
  self._model_list = parse_models_file(MODEL_LIST_FILE_LOCATION)
152
153
  if self._should_load_robusta_ai():
153
154
  logging.info("Loading Robusta AI model")
154
- self._model_list["Robusta"] = {
155
+ self._model_list[ROBUSTA_AI_MODEL_NAME] = {
155
156
  "base_url": ROBUSTA_API_ENDPOINT,
156
157
  }
157
158
 
holmes/utils/robusta.py CHANGED
@@ -1,10 +1,9 @@
1
- from holmes.config import Config
1
+ from holmes.config import Config, ROBUSTA_AI_MODEL_NAME
2
2
  from holmes.core.supabase_dal import SupabaseDal
3
3
  from pydantic import SecretStr
4
- from holmes.common.env_vars import load_bool
5
4
 
6
5
 
7
6
  def load_robusta_api_key(dal: SupabaseDal, config: Config):
8
- if load_bool("ROBUSTA_AI", False):
7
+ if ROBUSTA_AI_MODEL_NAME in config._model_list:
9
8
  account_id, token = dal.get_ai_credentials()
10
9
  config.api_key = SecretStr(f"{account_id} {token}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: holmesgpt
3
- Version: 0.12.0
3
+ Version: 0.12.0a0
4
4
  Summary:
5
5
  Author: Natan Yellin
6
6
  Author-email: natan@robusta.dev
@@ -1,8 +1,8 @@
1
1
  holmes/.git_archival.json,sha256=PbwdO7rNhEJ4ALiO12DPPb81xNAIsVxCA0m8OrVoqsk,182
2
- holmes/__init__.py,sha256=TWmQpKeCu7EZ1vKhYE37-DAjea5-i4P_6rEEu8yVOg4,2172
2
+ holmes/__init__.py,sha256=YOPbAEB6arNwdwPT4mge8qNkAdjgv1yQdSZK3qwUefY,2178
3
3
  holmes/clients/robusta_client.py,sha256=b6zje8VF8aOpjXnluBcBDdf3Xb88yFXvKDcy2gV1DeM,672
4
4
  holmes/common/env_vars.py,sha256=ayfuw30HnfWmEoghgWlF3vOwiarl7uQns_yxVfs7N_w,1915
5
- holmes/config.py,sha256=8FixTd69Ljs218SXeqU46Zyk02joV86pNtIGYoZZYGw,21278
5
+ holmes/config.py,sha256=0wRpKpBNCFAXqxrcAmfyPMQ5WYOCypjhoLeL4m4ZZic,21324
6
6
  holmes/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  holmes/core/conversations.py,sha256=LXT3T-5hwl4xHXBhO4XyOKm6k9w58anQ3dw4F2aptqs,20769
8
8
  holmes/core/investigation.py,sha256=nSVkCfeliZjQT2PrgNPD3o1EwKe9je0Pq3F2bDNQiCU,5646
@@ -183,10 +183,10 @@ holmes/utils/holmes_status.py,sha256=7qUJU3TwMpQXS4Wri5dL2quUsZMkX0sR0OS9m0LHOms
183
183
  holmes/utils/holmes_sync_toolsets.py,sha256=HNUMstaPP2NS5bnEHJMPFjKbAgvsevuuTdDiSUZ7Pkk,3225
184
184
  holmes/utils/markdown_utils.py,sha256=_yDc_IRB5zkj9THUlZ6nzir44VfirTjPccC_DrFrBkc,1507
185
185
  holmes/utils/pydantic_utils.py,sha256=g0e0jLTa8Je8JKrhEP4N5sMxj0_hhPOqFZr0Vpd67sg,1649
186
- holmes/utils/robusta.py,sha256=uYQ7v1CSfTM94sOPy09kRZh-lPwmTd-5hrqHu0PdtZ4,372
186
+ holmes/utils/robusta.py,sha256=4FZKv5DhDnvINuMlbyFRWCYdR4p7Pj4tyYIUkq1vHUU,363
187
187
  holmes/utils/tags.py,sha256=SU4EZMBtLlIb7OlHsSpguFaypczRzOcuHYxDSanV3sQ,3364
188
- holmesgpt-0.12.0.dist-info/LICENSE.txt,sha256=RdZMj8VXRQdVslr6PMYMbAEu5pOjOdjDqt3yAmWb9Ds,1072
189
- holmesgpt-0.12.0.dist-info/METADATA,sha256=q3BoYIunnghVlg98sv5JblegkmBTMj67PWskLq-y24s,21641
190
- holmesgpt-0.12.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
191
- holmesgpt-0.12.0.dist-info/entry_points.txt,sha256=JdzEyZhpaYr7Boo4uy4UZgzY1VsAEbzMgGmHZtx9KFY,42
192
- holmesgpt-0.12.0.dist-info/RECORD,,
188
+ holmesgpt-0.12.0a0.dist-info/LICENSE.txt,sha256=RdZMj8VXRQdVslr6PMYMbAEu5pOjOdjDqt3yAmWb9Ds,1072
189
+ holmesgpt-0.12.0a0.dist-info/METADATA,sha256=V2xw8ymq8gN2kOfuHbOnzgR4K_ziLf77XaTYiSsBxt4,21643
190
+ holmesgpt-0.12.0a0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
191
+ holmesgpt-0.12.0a0.dist-info/entry_points.txt,sha256=JdzEyZhpaYr7Boo4uy4UZgzY1VsAEbzMgGmHZtx9KFY,42
192
+ holmesgpt-0.12.0a0.dist-info/RECORD,,