verifiers 0.3.2.dev58__py3-none-any.whl → 0.3.2.dev59__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.
- verifiers/v1/dialects/chat.py +7 -0
- verifiers/v1/dialects/responses.py +4 -1
- {verifiers-0.3.2.dev58.dist-info → verifiers-0.3.2.dev59.dist-info}/METADATA +1 -1
- {verifiers-0.3.2.dev58.dist-info → verifiers-0.3.2.dev59.dist-info}/RECORD +7 -7
- {verifiers-0.3.2.dev58.dist-info → verifiers-0.3.2.dev59.dist-info}/WHEEL +0 -0
- {verifiers-0.3.2.dev58.dist-info → verifiers-0.3.2.dev59.dist-info}/entry_points.txt +0 -0
- {verifiers-0.3.2.dev58.dist-info → verifiers-0.3.2.dev59.dist-info}/licenses/LICENSE +0 -0
verifiers/v1/dialects/chat.py
CHANGED
|
@@ -15,6 +15,7 @@ from typing import Any
|
|
|
15
15
|
from urllib.parse import urlsplit
|
|
16
16
|
|
|
17
17
|
from openai.types.chat import ChatCompletion
|
|
18
|
+
from openai.types.chat.chat_completion import Choice
|
|
18
19
|
|
|
19
20
|
from verifiers.v1.configs.runtime import NetworkPolicyConfig
|
|
20
21
|
from verifiers.v1.dialects.base import (
|
|
@@ -44,12 +45,18 @@ from verifiers.v1.types import (
|
|
|
44
45
|
)
|
|
45
46
|
|
|
46
47
|
|
|
48
|
+
class ModdedChoice(Choice):
|
|
49
|
+
# Logprobs are relayed in Response.raw; trace conversion never reads them.
|
|
50
|
+
logprobs: Any = None
|
|
51
|
+
|
|
52
|
+
|
|
47
53
|
class ModdedChatCompletion(ChatCompletion):
|
|
48
54
|
"""The OpenAI SDK closes `service_tier` to a fixed `Literal`, but providers return tiers
|
|
49
55
|
outside it (e.g. Prime's `provisioned`), which makes `model_validate` reject an otherwise
|
|
50
56
|
valid completion. Widen the field to a plain string — we don't consume it — so parsing stays
|
|
51
57
|
lenient about the label instead of dropping it."""
|
|
52
58
|
|
|
59
|
+
choices: list[ModdedChoice]
|
|
53
60
|
service_tier: str | None = None
|
|
54
61
|
|
|
55
62
|
|
|
@@ -315,7 +315,10 @@ def fold_assistant(items: list[dict] | None) -> AssistantMessage:
|
|
|
315
315
|
def response_from_wire(response: OpenAIResponse) -> Response:
|
|
316
316
|
"""An OpenAI Responses object -> a vf `Response` (its `output` items folded into one
|
|
317
317
|
assistant message)."""
|
|
318
|
-
|
|
318
|
+
# Copy the output snapshot without traversing echoed tools or request settings.
|
|
319
|
+
data = response.model_dump(
|
|
320
|
+
include={"id", "created_at", "model", "status", "error", "output"}
|
|
321
|
+
)
|
|
319
322
|
status = data.get("status")
|
|
320
323
|
if status not in (None, "completed", "incomplete"):
|
|
321
324
|
error = data.get("error") or {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: verifiers
|
|
3
|
-
Version: 0.3.2.
|
|
3
|
+
Version: 0.3.2.dev59
|
|
4
4
|
Summary: Verifiers: Environments for LLM Reinforcement Learning
|
|
5
5
|
Project-URL: Homepage, https://github.com/primeintellect-ai/verifiers
|
|
6
6
|
Project-URL: Documentation, https://github.com/primeintellect-ai/verifiers
|
|
@@ -62,8 +62,8 @@ verifiers/v1/configs/cli/validate.py,sha256=NXQ9KvhGLODLrg1fs3Jn-SOq1hhPxauVWiPS
|
|
|
62
62
|
verifiers/v1/dialects/__init__.py,sha256=MNOYM2NdTlSxGK4VtoEjMtD5zya2MpjPDX5jMvZUWEo,736
|
|
63
63
|
verifiers/v1/dialects/anthropic.py,sha256=abwcKRsKkgfgLSuntxBMdL03enG7roRdGoHTYfswafM,26887
|
|
64
64
|
verifiers/v1/dialects/base.py,sha256=pcFqWXSl50VtMuzcY5cyhsc4WpKCM5wT-tskTFZV7CM,12203
|
|
65
|
-
verifiers/v1/dialects/chat.py,sha256=
|
|
66
|
-
verifiers/v1/dialects/responses.py,sha256=
|
|
65
|
+
verifiers/v1/dialects/chat.py,sha256=qhjpduOfNnstfkLTtC0MTS_IfuiOkBwuSwpIg_y1Hjw,23881
|
|
66
|
+
verifiers/v1/dialects/responses.py,sha256=FRQXRubijMG7VuqW_I7ex2DnEzOjuZxwxATy-loEkm0,29254
|
|
67
67
|
verifiers/v1/envs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
68
68
|
verifiers/v1/envs/agentic_judge/__init__.py,sha256=LfEcRHLG_siKzhzWmODDXWSLpLgfum3UFdQDK9XG0gk,325
|
|
69
69
|
verifiers/v1/envs/agentic_judge/env.py,sha256=GovnHqgRm8nQLAM7wMx57-A_wJBRYopsfiy2Bgf32nA,15339
|
|
@@ -189,8 +189,8 @@ verifiers/v1/utils/prime.py,sha256=UTYRjp9cbjNb6CVmBHda-1wWZAIIfxNOmTyNuT7_wL4,9
|
|
|
189
189
|
verifiers/v1/utils/retries.py,sha256=Y2ZgrAjn-qNkRKZP_RVNL_7EK0iaRcZeCa404lpGYi4,5417
|
|
190
190
|
verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
|
|
191
191
|
verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
|
|
192
|
-
verifiers-0.3.2.
|
|
193
|
-
verifiers-0.3.2.
|
|
194
|
-
verifiers-0.3.2.
|
|
195
|
-
verifiers-0.3.2.
|
|
196
|
-
verifiers-0.3.2.
|
|
192
|
+
verifiers-0.3.2.dev59.dist-info/METADATA,sha256=PsSfsNRgqhTgCJsBY8_ODR_rUmPRliclAgnVutS2FyY,4204
|
|
193
|
+
verifiers-0.3.2.dev59.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
|
|
194
|
+
verifiers-0.3.2.dev59.dist-info/entry_points.txt,sha256=uqQje0TMsr7k6nXlWxlPs13Si0evb3pVCEDF6c-YL80,241
|
|
195
|
+
verifiers-0.3.2.dev59.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
|
|
196
|
+
verifiers-0.3.2.dev59.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|