Skip to content

Commit

Permalink
Remove the deprecated load_model_by_config_name function in the nl2sq…
Browse files Browse the repository at this point in the history
…l example (#415)

---------

Co-authored-by: wenhao <[email protected]>
  • Loading branch information
garyzhang99 and wenhao authored Aug 22, 2024
1 parent e7ed12b commit 67e734d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/conversation_nl2sql/react_nl2sql.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,13 @@
"source": [
"from typing import Callable\n",
"import agentscope\n",
"from agentscope.models import load_model_by_config_name\n",
"agentscope.init(\n",
" model_configs=\"./configs/model_configs.json\",\n",
" project=\"Conversation with NL2SQL\",\n",
")\n",
"loaded_model = load_model_by_config_name('gpt-4')"
"from agentscope.manager import ModelManager\n",
"model_manager = ModelManager.get_instance()\n",
"loaded_model = model_manager.get_model_by_config_name('gpt-4')"
]
},
{
Expand Down

0 comments on commit 67e734d

Please sign in to comment.