mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-04-29 12:00:00 +00:00
model fixes
This commit is contained in:
parent
223f1bdaf5
commit
7dc37a3ac7
2 changed files with 4 additions and 2 deletions
|
|
@ -22,7 +22,9 @@ def provision_model(content, config, default_type):
|
|||
)
|
||||
return model_manager.get_default_model("large_context").to_langchain()
|
||||
elif config.get("configurable", {}).get("model_id"):
|
||||
return model_manager.get_model(config.get("configurable", {}).get("model_id"))
|
||||
return model_manager.get_model(
|
||||
config.get("configurable", {}).get("model_id")
|
||||
).to_langchain()
|
||||
else:
|
||||
return model_manager.get_default_model(default_type).to_langchain()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue