mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-04-29 12:00:00 +00:00
rename model_name to model_id
This commit is contained in:
parent
af315a0bab
commit
c65bf8ba12
7 changed files with 40 additions and 35 deletions
|
|
@ -18,8 +18,8 @@ class PatternChainState(TypedDict):
|
|||
|
||||
|
||||
def call_model(state: dict, config: RunnableConfig) -> dict:
|
||||
model_name = config.get("configurable", {}).get(
|
||||
"model_name", DEFAULT_MODELS.default_transformation_model
|
||||
model_id = config.get("configurable", {}).get(
|
||||
"model_id", DEFAULT_MODELS.default_transformation_model
|
||||
)
|
||||
transformations = state["transformations"]
|
||||
current_transformation = transformations.pop(0)
|
||||
|
|
@ -34,7 +34,7 @@ def call_model(state: dict, config: RunnableConfig) -> dict:
|
|||
|
||||
transformation_result = run_pattern(
|
||||
pattern_name=current_transformation,
|
||||
model_name=model_name,
|
||||
model_id=model_id,
|
||||
state=input_args,
|
||||
)
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue