Fix pydantic json error
Build Agents Runtime / build (push) Successful in 3m7s
Details
Build Agents Runtime / build (push) Successful in 3m7s
Details
This commit is contained in:
parent
b0598ff0e1
commit
3f48ad638f
|
|
@ -33,7 +33,7 @@ spec:
|
|||
- name: ANTHROPIC_API_KEY
|
||||
value: "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"
|
||||
- name: LLM_MODEL
|
||||
value: "claude-3-5-sonnet-20241022"
|
||||
value: "claude-sonnet-4-6"
|
||||
resources:
|
||||
limits:
|
||||
cpu: 500m
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ async def parse_booking_intent_activity(chat_history: list[dict]) -> dict:
|
|||
try:
|
||||
print(f"Parsing intent for history:\n{history_str}")
|
||||
result = chain.invoke({"history": history_str})
|
||||
print(f"[Claude Response]: {result.json(indent=2)}")
|
||||
print(f"[Claude Response]: {result.model_dump_json(indent=2) if hasattr(result, 'model_dump_json') else result.dict()}")
|
||||
return result.dict()
|
||||
except Exception as e:
|
||||
print(f"Failed to parse booking intent: {e}")
|
||||
|
|
|
|||
Loading…
Reference in New Issue