Skip to content

Commit d501760

Browse files
committed
Fix Pydantic deprecation errors
1 parent 79f1f9c commit d501760

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pebblo_saferetriever/langchain/pebblo-saferag/sharepoint-postgres/pebblo_saferag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def ask(
154154
query=question, auth_context=auth_context, semantic_context=semantic_context
155155
)
156156
# Print chain input in formatted json
157-
print(f"\nchain_input: {chain_input.json(indent=4)}")
157+
print(f"\nchain_input: {chain_input.model_dump_json(indent=4)}")
158158
return self.retrieval_chain.invoke(chain_input.dict())
159159

160160

pebblo_saferetriever/langchain/pebblo-saferag/sharepoint-qdrant/pebblo_saferag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def ask(
124124
query=question, auth_context=auth_context, semantic_context=semantic_context
125125
)
126126
# Print chain input in formatted json
127-
print(f"\nchain_input: {chain_input.json(indent=4)}")
127+
print(f"\nchain_input: {chain_input.model_dump_json(indent=4)}")
128128
return self.retrieval_chain.invoke(chain_input.dict())
129129

130130

0 commit comments

Comments
 (0)