before_agent guideline
This commit is contained in:
parent
bf9a49ecd8
commit
ac4006fd59
@ -49,6 +49,8 @@ async def init_agent(bot_id: str, model_name="qwen3-next", api_key=None,
|
||||
"base_url": base_url,
|
||||
"api_key": api_key
|
||||
}
|
||||
if generate_cfg:
|
||||
model_kwargs.update(generate_cfg)
|
||||
llm_instance = init_chat_model(**model_kwargs)
|
||||
|
||||
agent = create_agent(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user