crewAIInc / crewAI

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
https://crewai.com
MIT License
20.69k stars 2.86k forks source link

[BUG]set llm in agents.yaml not work #1304

Closed pro518 closed 2 weeks ago

pro518 commented 1 month ago

Description

I set llm in agents.yaml, but it is not work,agent connect opnai.com still

Steps to Reproduce

1.I set llm in agents.yaml llm: chatglm_llm 2.define chatglm_llm in crew.pu @llm def chatglm_llm(self): return ChatZhipuAI( model="glm-4-plus", temperature=0.8, max_tokens=32768, base_url='https://open.bigmodel.cn/api/paas/v4', api_key="*****" )

Expected behavior

agent connect zhipu llm

Screenshots/Code snippets

Task output: Agent stopped due to iteration limit or time limit.

Operating System

Windows 11

Python Version

3.10

crewAI Version

0.51.1

crewAI Tools Version

0.8.3

Virtual Environment

Venv

Evidence


Possible Solution


Additional context


github-actions[bot] commented 3 weeks ago

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 2 weeks ago

This issue was closed because it has been stalled for 5 days with no activity.