ppsingh commited on
Commit
5d25e48
1 Parent(s): 8af8581

update chat_completion

Browse files
Files changed (1) hide show
  1. appStore/rag.py +1 -1
appStore/rag.py CHANGED
@@ -53,7 +53,7 @@ def run_query(context, label, model_sel_name):
53
  client = InferenceClient(model_sel_name, token=hf_token)
54
 
55
  # Instantiate ChatCompletion as a generator object (stream is set to True)
56
- chat_completion = client.chat.completions.create(
57
  messages=messages,
58
  stream=True
59
  )
 
53
  client = InferenceClient(model_sel_name, token=hf_token)
54
 
55
  # Instantiate ChatCompletion as a generator object (stream is set to True)
56
+ chat_completion = client.chat_completion(
57
  messages=messages,
58
  stream=True
59
  )