janus-llm 3.5.0__py3-none-any.whl → 3.5.1__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- janus/__init__.py +1 -1
- janus/converter/diagram.py +1 -1
- janus/converter/document.py +1 -1
- janus/parsers/doc_parser.py +2 -1
- {janus_llm-3.5.0.dist-info → janus_llm-3.5.1.dist-info}/METADATA +1 -1
- {janus_llm-3.5.0.dist-info → janus_llm-3.5.1.dist-info}/RECORD +9 -9
- {janus_llm-3.5.0.dist-info → janus_llm-3.5.1.dist-info}/LICENSE +0 -0
- {janus_llm-3.5.0.dist-info → janus_llm-3.5.1.dist-info}/WHEEL +0 -0
- {janus_llm-3.5.0.dist-info → janus_llm-3.5.1.dist-info}/entry_points.txt +0 -0
janus/__init__.py
CHANGED
@@ -5,7 +5,7 @@ from langchain_core._api.deprecation import LangChainDeprecationWarning
|
|
5
5
|
from janus.converter.translate import Translator
|
6
6
|
from janus.metrics import * # noqa: F403
|
7
7
|
|
8
|
-
__version__ = "3.5.
|
8
|
+
__version__ = "3.5.1"
|
9
9
|
|
10
10
|
# Ignoring a deprecation warning from langchain_core that I can't seem to hunt down
|
11
11
|
warnings.filterwarnings("ignore", category=LangChainDeprecationWarning)
|
janus/converter/diagram.py
CHANGED
@@ -130,7 +130,7 @@ class DiagramGenerator(Documenter):
|
|
130
130
|
If the relevant fields have not been changed since the last time this method was
|
131
131
|
called, nothing happens.
|
132
132
|
"""
|
133
|
-
self._diagram_prompt_engine = MODEL_PROMPT_ENGINES[self.
|
133
|
+
self._diagram_prompt_engine = MODEL_PROMPT_ENGINES[self._model_id](
|
134
134
|
source_language=self._source_language,
|
135
135
|
target_language="text",
|
136
136
|
target_version=None,
|
janus/converter/document.py
CHANGED
@@ -125,7 +125,7 @@ class MadLibsDocumenter(Documenter):
|
|
125
125
|
out_text = self._parser.parse(working_block.text)
|
126
126
|
obj.update(json.loads(out_text))
|
127
127
|
|
128
|
-
self._parser.
|
128
|
+
self._parser.parse_input(block.original)
|
129
129
|
block.text = self._parser.parse(json.dumps(obj))
|
130
130
|
block.tokens = self._llm.get_num_tokens(block.text)
|
131
131
|
block.translated = True
|
janus/parsers/doc_parser.py
CHANGED
@@ -92,11 +92,12 @@ class MadlibsDocumentationParser(JanusParser):
|
|
92
92
|
def __init__(self):
|
93
93
|
super().__init__(expected_keys=[])
|
94
94
|
|
95
|
-
def parse_input(self, block: CodeBlock):
|
95
|
+
def parse_input(self, block: CodeBlock) -> str:
|
96
96
|
# TODO: Perform comment stripping/placeholding here rather than in script
|
97
97
|
text = super().parse_input(block)
|
98
98
|
comment_ids = re.findall(r"<(?:BLOCK|INLINE)_COMMENT (\w{8})>", text)
|
99
99
|
self.expected_keys = set(comment_ids)
|
100
|
+
return text
|
100
101
|
|
101
102
|
def parse(self, text: str | BaseMessage) -> str:
|
102
103
|
if isinstance(text, BaseMessage):
|
@@ -1,4 +1,4 @@
|
|
1
|
-
janus/__init__.py,sha256=
|
1
|
+
janus/__init__.py,sha256=nMslKA6BZu1FW0pfi-tziluM8r6gETz2o0YNYzKC6Lo,361
|
2
2
|
janus/__main__.py,sha256=lEkpNtLVPtFo8ySDZeXJ_NXDHb0GVdZFPWB4gD4RPS8,64
|
3
3
|
janus/_tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
janus/_tests/conftest.py,sha256=V7uW-oq3YbFiRPvrq15YoVVrA1n_83pjgiyTZ-IUGW8,963
|
@@ -9,8 +9,8 @@ janus/converter/_tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
|
|
9
9
|
janus/converter/_tests/test_translate.py,sha256=yzcFEGc_z8QmBBBmC9dZnfL9tT8CD1rkpc8Hz44Jp4c,5631
|
10
10
|
janus/converter/aggregator.py,sha256=MuAXMKmq6PuUo_w6ljyiuDn81Gk2dN-Ci7FVeLc6vhs,1966
|
11
11
|
janus/converter/converter.py,sha256=GL4moCOi5vvvsEjAf_7Vrn5GHq12nptH47AAP4soeQc,27956
|
12
|
-
janus/converter/diagram.py,sha256=
|
13
|
-
janus/converter/document.py,sha256=
|
12
|
+
janus/converter/diagram.py,sha256=sqztG_8T_gQ4njk5V7tg1QCgT6gFbL3CUy7t2l0X5i4,5283
|
13
|
+
janus/converter/document.py,sha256=qNt2UncMheUBadXCFHGq74tqCrvZub5DCgZpd3Qa54o,4564
|
14
14
|
janus/converter/evaluate.py,sha256=APWQUY3gjAXqkJkPzvj0UA4wPK3Cv9QSJLM-YK9t-ng,476
|
15
15
|
janus/converter/requirements.py,sha256=9tvQ40FZJtG8niIFn45gPQCgKKHVPPoFLinBv6RAqO4,2027
|
16
16
|
janus/converter/translate.py,sha256=0brQTlSfBYmXtoM8QYIOiyr0LrTr0S1n68Du-BR7_WQ,4236
|
@@ -86,7 +86,7 @@ janus/parsers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
86
86
|
janus/parsers/_tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
87
87
|
janus/parsers/_tests/test_code_parser.py,sha256=3ay5QpUPcynX_EJ-YLl3PR28poutUkT7qvyWUSQ7Too,928
|
88
88
|
janus/parsers/code_parser.py,sha256=3l0HfzgrvJuiwk779s9ZsgUl3xbp1nE1qZxh8aDYRBI,873
|
89
|
-
janus/parsers/doc_parser.py,sha256=
|
89
|
+
janus/parsers/doc_parser.py,sha256=0pUsNZ9hKQLjIi8L8BgkOBHQZ_EGoFLHrBQ4hoDkjSw,5862
|
90
90
|
janus/parsers/eval_parser.py,sha256=Gjh6aTZgpYd2ASJUEPMo4LpCL00cBmbOqc4KM3hy8x8,2922
|
91
91
|
janus/parsers/parser.py,sha256=y6VV64bgVidf-oEFla3I--_28tnJsPBc6QUD_SkbfSE,1614
|
92
92
|
janus/parsers/refiner_parser.py,sha256=W7ecDX7j6N-uWtRBYFD1EiEzDpDQws16nrVFzyArzf8,1632
|
@@ -102,8 +102,8 @@ janus/utils/_tests/test_progress.py,sha256=Rs_u5PiGjP-L-o6C1fhwfE1ig8jYu9Xo9s4p8
|
|
102
102
|
janus/utils/enums.py,sha256=AoilbdiYyMvY2Mp0AM4xlbLSELfut2XMwhIM1S_msP4,27610
|
103
103
|
janus/utils/logger.py,sha256=KZeuaMAnlSZCsj4yL0P6N-JzZwpxXygzACWfdZFeuek,2337
|
104
104
|
janus/utils/progress.py,sha256=PIpcQec7SrhsfqB25LHj2CDDkfm9umZx90d9LZnAx6k,1469
|
105
|
-
janus_llm-3.5.
|
106
|
-
janus_llm-3.5.
|
107
|
-
janus_llm-3.5.
|
108
|
-
janus_llm-3.5.
|
109
|
-
janus_llm-3.5.
|
105
|
+
janus_llm-3.5.1.dist-info/LICENSE,sha256=_j0st0a-HB6MRbP3_BW3PUqpS16v54luyy-1zVyl8NU,10789
|
106
|
+
janus_llm-3.5.1.dist-info/METADATA,sha256=kIZdLtkybJ-S_dyglL8kPRwnt2wND8wS2nEyM76FL-U,4184
|
107
|
+
janus_llm-3.5.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
108
|
+
janus_llm-3.5.1.dist-info/entry_points.txt,sha256=OGhQwzj6pvXp79B0SaBD5apGekCu7Dwe9fZZT_TZ544,39
|
109
|
+
janus_llm-3.5.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|