code cleanup

This commit is contained in:
Krrish Dholakia 2023-08-12 17:12:57 -07:00
parent 4bad9e137f
commit 7490669218
2 changed files with 2 additions and 2 deletions

View file

@ -298,7 +298,7 @@ def completion(
"total_tokens": prompt_tokens + completion_tokens
}
response = model_response
elif hugging_face == True or custom_llm_provider == "huggingface":
elif custom_llm_provider == "huggingface":
import requests
API_URL = f"https://api-inference.huggingface.co/models/{model}"
HF_TOKEN = get_secret("HF_TOKEN")