mirror of https://github.com/microsoft/autogen.git
Compare commits
4 Commits
9498ae884a
...
7ca944fbf0
Author | SHA1 | Date |
---|---|---|
Oscar Fimbres | 7ca944fbf0 | |
Eric Zhu | 8a8fcd8906 | |
Joel Klaverkamp | 23c14bc937 | |
Victor Dibia | 9f428880b3 |
|
@ -1069,7 +1069,7 @@ class OpenAIWrapper:
|
|||
|
||||
def _throttle_api_calls(self, idx: int) -> None:
|
||||
"""Rate limit api calls."""
|
||||
if self._rate_limiters[idx]:
|
||||
if idx < len(self._rate_limiters) and self._rate_limiters[idx]:
|
||||
limiter = self._rate_limiters[idx]
|
||||
|
||||
assert limiter is not None
|
||||
|
|
|
@ -1 +1 @@
|
|||
__version__ = "0.2.37"
|
||||
__version__ = "0.2.38"
|
||||
|
|
|
@ -45,7 +45,7 @@ pip install autogen-agentchat~=0.2
|
|||
import os
|
||||
from autogen import AssistantAgent, UserProxyAgent
|
||||
|
||||
llm_config = {"model": "gpt-4", "api_key": os.environ["OPENAI_API_KEY"]}
|
||||
llm_config = { "config_list": [{ "model": "gpt-4", "api_key": os.environ.get("OPENAI_API_KEY") }] }
|
||||
assistant = AssistantAgent("assistant", llm_config=llm_config)
|
||||
user_proxy = UserProxyAgent("user_proxy", code_execution_config=False)
|
||||
|
||||
|
|
Loading…
Reference in New Issue