File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ def __repr__(self): # pyright: ignore
135135 ret += "," .join ([i .__repr__ () for i in self .context .result ()])
136136 return ret + "]"
137137
138+
138139def ensure_context (context : dict | list | PDLContext ) -> PDLContext :
139140 match context :
140141 case dict ():
@@ -147,6 +148,7 @@ def ensure_context(context: dict | list | PDLContext) -> PDLContext:
147148 raise TypeError (f"'{ type (context )} ' object is not a valid context" )
148149 return ctx
149150
151+
150152def deserialize (
151153 context : list [dict [str , Any ]],
152154) -> DependentContext : # Only support dependent for now
Original file line number Diff line number Diff line change @@ -1429,7 +1429,9 @@ def process_call_model(
14291429 "pdl__model_input" : model_input ,
14301430 }
14311431 )
1432- model_input = [{k : v for k , v in m .items () if k != "defsite" } for m in model_input ]
1432+ model_input = [
1433+ {k : v for k , v in m .items () if k != "defsite" } for m in model_input
1434+ ]
14331435
14341436 # Execute model call
14351437 litellm_params = {}
You can’t perform that action at this time.
0 commit comments