congiuluc commited on
Commit
08fcc4a
·
1 Parent(s): 2dd43ef

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
- keyword_extraction = kwargs.pop("keyword_extraction", None)
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,