Skip to content

Commit

Permalink
remove api_key_path; close #388
Browse files Browse the repository at this point in the history
  • Loading branch information
sonichi committed Oct 23, 2023
1 parent dfd5695 commit c41be9c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion autogen/oai/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ def _get_response(cls, config: Dict, raise_on_ratelimit_or_timeout=False, use_ca
Try cache first. If not found, call the openai api. If the api call fails, retry after retry_wait_time.
"""
config = config.copy()
openai.api_key_path = config.pop("api_key_path", openai.api_key_path)
key = get_key(config)
if use_cache:
response = cls._cache.get(key, None)
Expand Down

0 comments on commit c41be9c

Please sign in to comment.