rename model_name to model_id

This commit is contained in:
LUIS NOVO 2024-11-01 12:07:00 -03:00
parent af315a0bab
commit c65bf8ba12
7 changed files with 40 additions and 35 deletions

View file

@ -19,10 +19,10 @@ class DocQueryState(TypedDict):
def call_model(state: dict, config: RunnableConfig) -> dict:
model_name = config.get("configurable", {}).get(
"model_name", os.environ.get("RETRIEVAL_MODEL")
model_id = config.get("configurable", {}).get(
"model_id", os.environ.get("RETRIEVAL_MODEL")
)
return {"answer": run_pattern("doc_query", model_name, state)}
return {"answer": run_pattern("doc_query", model_id, state)}
# todo: there is probably a better way to do this and avoid repetition