codespector 0.1.0__py3-none-any.whl → 0.1.2__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.
- codespector/local/reviewer.py +2 -3
- {codespector-0.1.0.dist-info → codespector-0.1.2.dist-info}/METADATA +1 -1
- {codespector-0.1.0.dist-info → codespector-0.1.2.dist-info}/RECORD +6 -6
- {codespector-0.1.0.dist-info → codespector-0.1.2.dist-info}/WHEEL +0 -0
- {codespector-0.1.0.dist-info → codespector-0.1.2.dist-info}/entry_points.txt +0 -0
- {codespector-0.1.0.dist-info → codespector-0.1.2.dist-info}/licenses/LICENSE +0 -0
codespector/local/reviewer.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import os.path
|
2
2
|
from dataclasses import dataclass
|
3
|
-
from typing import Self
|
4
3
|
|
5
4
|
import ujson
|
6
5
|
import requests
|
@@ -22,7 +21,7 @@ class AgentInfo:
|
|
22
21
|
headers: dict
|
23
22
|
|
24
23
|
@classmethod
|
25
|
-
def create(cls, chat_agent: str, chat_token: str, chat_model: str | None = None) ->
|
24
|
+
def create(cls, chat_agent: str, chat_token: str, chat_model: str | None = None) -> 'AgentInfo':
|
26
25
|
url = AGENT_URL_MAPPING[chat_agent]
|
27
26
|
model = chat_model if chat_model else DEFAULT_AGENT_MODEL[chat_agent]
|
28
27
|
headers = {'Authorization': f'Bearer {chat_token}'}
|
@@ -52,7 +51,7 @@ class CodeSpectorReviewer:
|
|
52
51
|
|
53
52
|
self.request_file = 'request.json'
|
54
53
|
self.response_file = 'response.json'
|
55
|
-
self.result_file = 'result.
|
54
|
+
self.result_file = 'result.md'
|
56
55
|
|
57
56
|
def _request_to_chat_agent(self, prompt: str):
|
58
57
|
agent_info = AgentInfo.create(self.chat_agent, self.chat_token, self.chat_model)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: codespector
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.2
|
4
4
|
Summary: Assistant for reviewing your code
|
5
5
|
Project-URL: Repository, https://github.com/Vladimir-Titov/codespector
|
6
6
|
Project-URL: Issues, https://github.com/Vladimir-Titov/codespector/issues
|
@@ -6,9 +6,9 @@ codespector/clients/codestral.py,sha256=MV6_m9IMYzTHX5AS9UoPkhGUNHRoOXgIpTZ8uHfw
|
|
6
6
|
codespector/local/__init__.py,sha256=spdqmAUYVjE-6RJUNUQ63ymwBY3svwC1gQp5QHAZdwg,35
|
7
7
|
codespector/local/main.py,sha256=JQb8mBQEjxsjNnjpqCOP84ZF92T2DjTzCslRdHQLqlg,1136
|
8
8
|
codespector/local/prepare.py,sha256=uqQft4RDH_5Rms3fGROc_fzCCRVcu-BxDzCAVF16buo,2821
|
9
|
-
codespector/local/reviewer.py,sha256=
|
10
|
-
codespector-0.1.
|
11
|
-
codespector-0.1.
|
12
|
-
codespector-0.1.
|
13
|
-
codespector-0.1.
|
14
|
-
codespector-0.1.
|
9
|
+
codespector/local/reviewer.py,sha256=bsbdwXMhkyXMfIp55u5a8JRyndO-kjqzlQBVeoLdgMQ,3593
|
10
|
+
codespector-0.1.2.dist-info/METADATA,sha256=BWtpEmWdlrwRRYPVeig0RFtYTNx1dDXqmeGMGRplH2w,3160
|
11
|
+
codespector-0.1.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
12
|
+
codespector-0.1.2.dist-info/entry_points.txt,sha256=QlHn96KY8vzY1sOweKIuZOAQrSVse6h3v57vkwmHmJg,54
|
13
|
+
codespector-0.1.2.dist-info/licenses/LICENSE,sha256=Eta34ENUL_dZWy-prVNucMkoA38WIqiO9pKTUYiuT_A,1070
|
14
|
+
codespector-0.1.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|