janus-llm 3.5.0__py3-none-any.whl → 3.5.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.
- janus/__init__.py +1 -1
- janus/_tests/test_cli.py +1 -0
- janus/cli.py +4 -4
- 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.2.dist-info}/METADATA +1 -1
- {janus_llm-3.5.0.dist-info → janus_llm-3.5.2.dist-info}/RECORD +11 -11
- {janus_llm-3.5.0.dist-info → janus_llm-3.5.2.dist-info}/LICENSE +0 -0
- {janus_llm-3.5.0.dist-info → janus_llm-3.5.2.dist-info}/WHEEL +0 -0
- {janus_llm-3.5.0.dist-info → janus_llm-3.5.2.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.2"
|
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/_tests/test_cli.py
CHANGED
janus/cli.py
CHANGED
@@ -185,7 +185,7 @@ def translate(
|
|
185
185
|
"-L",
|
186
186
|
help="The custom name of the model set with 'janus llm add'.",
|
187
187
|
),
|
188
|
-
]
|
188
|
+
],
|
189
189
|
max_prompts: Annotated[
|
190
190
|
int,
|
191
191
|
typer.Option(
|
@@ -324,7 +324,7 @@ def document(
|
|
324
324
|
"-L",
|
325
325
|
help="The custom name of the model set with 'janus llm add'.",
|
326
326
|
),
|
327
|
-
]
|
327
|
+
],
|
328
328
|
max_prompts: Annotated[
|
329
329
|
int,
|
330
330
|
typer.Option(
|
@@ -480,7 +480,7 @@ def aggregate(
|
|
480
480
|
"-L",
|
481
481
|
help="The custom name of the model set with 'janus llm add'.",
|
482
482
|
),
|
483
|
-
]
|
483
|
+
],
|
484
484
|
max_prompts: Annotated[
|
485
485
|
int,
|
486
486
|
typer.Option(
|
@@ -597,7 +597,7 @@ def diagram(
|
|
597
597
|
"-L",
|
598
598
|
help="The custom name of the model set with 'janus llm add'.",
|
599
599
|
),
|
600
|
-
]
|
600
|
+
],
|
601
601
|
max_prompts: Annotated[
|
602
602
|
int,
|
603
603
|
typer.Option(
|
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,16 +1,16 @@
|
|
1
|
-
janus/__init__.py,sha256=
|
1
|
+
janus/__init__.py,sha256=tHgbaw6giBzOW8xhZzmG-PUD72eGrW0P-NRuSYCGoSY,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
|
5
|
-
janus/_tests/test_cli.py,sha256=
|
6
|
-
janus/cli.py,sha256=
|
5
|
+
janus/_tests/test_cli.py,sha256=6ef7h11bg4i7Q6L1-r0ZdcY7YrH4n472kvDiA03T4c8,4275
|
6
|
+
janus/cli.py,sha256=zsvS6XxwOxiDexeMQhM6sj0vR4D9uomNCZGk6yMIaFQ,36906
|
7
7
|
janus/converter/__init__.py,sha256=U2EOMcCykiC0ZqhorNefOP_04hOF18qhYoPKrVp1Vrk,345
|
8
8
|
janus/converter/_tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
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.2.dist-info/LICENSE,sha256=_j0st0a-HB6MRbP3_BW3PUqpS16v54luyy-1zVyl8NU,10789
|
106
|
+
janus_llm-3.5.2.dist-info/METADATA,sha256=Fa-HOr0_a3LvNwGGcjMCTqV2v1roMCInPU2zXZkl298,4184
|
107
|
+
janus_llm-3.5.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
108
|
+
janus_llm-3.5.2.dist-info/entry_points.txt,sha256=OGhQwzj6pvXp79B0SaBD5apGekCu7Dwe9fZZT_TZ544,39
|
109
|
+
janus_llm-3.5.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|