ouroboros-ai 0.2.0__py3-none-any.whl → 0.2.1__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.
- ouroboros/bigbang/ambiguity.py +6 -4
- {ouroboros_ai-0.2.0.dist-info → ouroboros_ai-0.2.1.dist-info}/METADATA +1 -1
- {ouroboros_ai-0.2.0.dist-info → ouroboros_ai-0.2.1.dist-info}/RECORD +6 -6
- {ouroboros_ai-0.2.0.dist-info → ouroboros_ai-0.2.1.dist-info}/WHEEL +0 -0
- {ouroboros_ai-0.2.0.dist-info → ouroboros_ai-0.2.1.dist-info}/entry_points.txt +0 -0
- {ouroboros_ai-0.2.0.dist-info → ouroboros_ai-0.2.1.dist-info}/licenses/LICENSE +0 -0
ouroboros/bigbang/ambiguity.py
CHANGED
|
@@ -36,8 +36,8 @@ DEFAULT_MODEL = "openrouter/google/gemini-2.0-flash-001"
|
|
|
36
36
|
# Temperature for reproducible scoring
|
|
37
37
|
SCORING_TEMPERATURE = 0.1
|
|
38
38
|
|
|
39
|
-
# Maximum token limit
|
|
40
|
-
MAX_TOKEN_LIMIT =
|
|
39
|
+
# Maximum token limit (None = no limit, rely on model's context window)
|
|
40
|
+
MAX_TOKEN_LIMIT: int | None = None
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
class ComponentScore(BaseModel):
|
|
@@ -234,8 +234,10 @@ class AmbiguityScorer:
|
|
|
234
234
|
is_truncated = result.value.finish_reason == "length"
|
|
235
235
|
|
|
236
236
|
if is_truncated:
|
|
237
|
-
#
|
|
238
|
-
next_tokens =
|
|
237
|
+
# Double tokens on truncation (no upper limit)
|
|
238
|
+
next_tokens = current_max_tokens * 2
|
|
239
|
+
if MAX_TOKEN_LIMIT is not None:
|
|
240
|
+
next_tokens = min(next_tokens, MAX_TOKEN_LIMIT)
|
|
239
241
|
log.warning(
|
|
240
242
|
"ambiguity.scoring.truncated_retrying",
|
|
241
243
|
interview_id=state.interview_id,
|
|
@@ -2,7 +2,7 @@ ouroboros/__init__.py,sha256=lmQgHmNOWxGlmwayNvp1ckCuJycL8WzX5Y-7IzrFaVM,701
|
|
|
2
2
|
ouroboros/__main__.py,sha256=f_qnL0zPJwh9kfQqynX5adpqzj8ilj94zW5Q2loqGxE,168
|
|
3
3
|
ouroboros/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
ouroboros/bigbang/__init__.py,sha256=9xGqOYwMKBifb7QVwonc_wndNLMZb7ZH7xgMHaz_70A,951
|
|
5
|
-
ouroboros/bigbang/ambiguity.py,sha256=
|
|
5
|
+
ouroboros/bigbang/ambiguity.py,sha256=4U_hhPst0wURyMZSAdF-2G7t6mtj8i_W7dl3w4WG3uQ,18653
|
|
6
6
|
ouroboros/bigbang/interview.py,sha256=zm1VrDNqE8ouGG62h8qnNkIpnUf3HHv4NjzMKDIaWcY,17147
|
|
7
7
|
ouroboros/bigbang/seed_generator.py,sha256=7MY9a7Eua_zVGDWIVDlzOZJjeAwz0DRatXJg0PvMgiY,20082
|
|
8
8
|
ouroboros/cli/__init__.py,sha256=CRpxsqJadZL7bCS-yrULWC51tqPKfPsxQLgt0JiwP4g,225
|
|
@@ -75,8 +75,8 @@ ouroboros/routing/tiers.py,sha256=QhBQUOo2-h5Z3dEtC0lcOzkRnqTi2W7Jl46750AVNig,73
|
|
|
75
75
|
ouroboros/secondary/__init__.py,sha256=kYQ7C4bnBzwDlPrU8qZrOPr2ZuTBaftGktOXl5WZl5Q,1123
|
|
76
76
|
ouroboros/secondary/scheduler.py,sha256=sPVVWJ1q0yewRAM-Rm1j_HMerSe4cavIvP9z4xlUuL4,13737
|
|
77
77
|
ouroboros/secondary/todo_registry.py,sha256=4W3C9Uro29VrVLCPKUlpH_BYpzQSbRNW1oMnDYyEhEw,13880
|
|
78
|
-
ouroboros_ai-0.2.
|
|
79
|
-
ouroboros_ai-0.2.
|
|
80
|
-
ouroboros_ai-0.2.
|
|
81
|
-
ouroboros_ai-0.2.
|
|
82
|
-
ouroboros_ai-0.2.
|
|
78
|
+
ouroboros_ai-0.2.1.dist-info/METADATA,sha256=9Foj5oGU4_E58RM-EmFWyOTe4oDgqoE5W6-MkopDpHU,19661
|
|
79
|
+
ouroboros_ai-0.2.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
80
|
+
ouroboros_ai-0.2.1.dist-info/entry_points.txt,sha256=MoETHup6rVkR6AsyjoRzAgIuvVtYYm3Jw40itV3_VyI,53
|
|
81
|
+
ouroboros_ai-0.2.1.dist-info/licenses/LICENSE,sha256=n2X-q26TqpXnoBo0t_WouhFxWw663_q5FmbYDZayoHo,1060
|
|
82
|
+
ouroboros_ai-0.2.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|