Skip to content

Commit

Permalink
fix deprecated top_k for GPTAPI (#185)
Browse files Browse the repository at this point in the history
Co-authored-by: liji <[email protected]>
  • Loading branch information
Iiji and liji authored Apr 27, 2024
1 parent bae6e83 commit 64ddf7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lagent/llms/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def __init__(self,
query_per_second=query_per_second,
retry=retry,
**gen_params)
self.gen_params.pop('top_k')
self.logger = getLogger(__name__)

if isinstance(key, str):
Expand Down

0 comments on commit 64ddf7b

Please sign in to comment.