Refactor keyword extraction handling in async wrapper for OpenAI completion

This commit is contained in:
Luca Congiu
2024-12-23 17:11:30 +01:00
parent de190603c3
commit b0c98531b0

View File

@@ -182,7 +182,7 @@ def create_app(args):
prompt, system_prompt=None, history_messages=[], **kwargs
):
"""Async wrapper for OpenAI completion"""
keyword_extraction = kwargs.pop("keyword_extraction", None)
kwargs.pop("keyword_extraction", None)
return await azure_openai_complete_if_cache(
args.model,