MVP 0.93 - stabile, aber Writing Profile ohne erkennbaren Nutzen
This commit is contained in:
1 parent
53b1eff833
commit
f17b3083e8
56 files changed
+5366
-784
No files matched your search
@@ -12,6 +12,7 @@ from context_builder import assemble_text, build_internal_context
|
||||
from dialogue_store import StoreError, append_message, get_conversation, list_conversations_for_day, list_messages
|
||||
from dialogue_turn import OPERATIONS, needs_repair, parse_turn_payload, repair_note
|
||||
from engine import EngineError, execute_prompt, load_active_prompt
|
||||
from entity_detect import DETECT_DIALOGUE_FALLBACK_CODES
|
||||
from journal_store import get_day
|
||||
from retrieval import retrieve
|
||||
|
||||
@@ -260,7 +261,7 @@ def start_journal_opening(profile_id: str, conversation_id: str) -> dict:
|
||||
"guard": "local_fallback",
|
||||
}
|
||||
except EngineError as exc:
|
||||
if exc.code != "response_validation_failed":
|
||||
if exc.code != "response_validation_failed" and exc.code not in DETECT_DIALOGUE_FALLBACK_CODES:
|
||||
raise
|
||||
return _store_opening(
|
||||
profile_id,
|
||||
@@ -275,7 +276,7 @@ def start_journal_opening(profile_id: str, conversation_id: str) -> dict:
|
||||
"operation": "fortfuehren",
|
||||
"label": OPERATIONS["fortfuehren"],
|
||||
"parsed": False,
|
||||
"guard": "identity_leak_blocked",
|
||||
"guard": "identity_leak_blocked" if exc.code == "response_validation_failed" else "detect_blocked",
|
||||
},
|
||||
"trace": result.get("trace") if result else None,
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user