mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-05-03 05:40:36 +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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue