Refactor keyword extraction handling in async wrapper for OpenAI completion
Browse files
api/azure_openai_lightrag_server.py
CHANGED
@@ -182,7 +182,7 @@ def create_app(args):
|
|
182 |
prompt, system_prompt=None, history_messages=[], **kwargs
|
183 |
):
|
184 |
"""Async wrapper for OpenAI completion"""
|
185 |
-
|
186 |
|
187 |
return await azure_openai_complete_if_cache(
|
188 |
args.model,
|
|
|
182 |
prompt, system_prompt=None, history_messages=[], **kwargs
|
183 |
):
|
184 |
"""Async wrapper for OpenAI completion"""
|
185 |
+
kwargs.pop("keyword_extraction", None)
|
186 |
|
187 |
return await azure_openai_complete_if_cache(
|
188 |
args.model,
|