Select phase-specific working context and retain auditable source evidence
This commit is contained in:
1 parent
3ea7cd5000
commit
d6749001bb
36 files changed
+599
-60
No files matched your search
@@ -104,8 +104,8 @@ class HypothesisBuilder:
|
||||
saved_context = read_json(reader, context_ref, "hypothesis-context", self.limits.max_context_bytes)
|
||||
version = saved_context.get('prompt_version', 'hypotheses_v1')
|
||||
else:
|
||||
version = 'hypotheses_v3'
|
||||
if version in {'hypotheses_v2','hypotheses_v3'}:
|
||||
version = 'hypotheses_v4'
|
||||
if version in {'hypotheses_v2','hypotheses_v3','hypotheses_v4'}:
|
||||
context['prompt_version'] = version
|
||||
if len(json_bytes(context)) > self.limits.max_context_bytes:
|
||||
raise HypothesisError('HYPOTHESIS_CONTEXT_LIMIT')
|
||||
|
||||
Reference in new issue
Block a user