before_agent guideline
This commit is contained in:
parent
bf9a49ecd8
commit
ac4006fd59
@ -46,9 +46,11 @@ async def init_agent(bot_id: str, model_name="qwen3-next", api_key=None,
|
||||
"model": model_name,
|
||||
"model_provider": model_provider,
|
||||
"temperature": 0.8,
|
||||
"base_url":base_url,
|
||||
"api_key":api_key
|
||||
"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