fix get optional params

This commit is contained in:
Krrish Dholakia 2023-10-02 12:02:45 -07:00
parent 8f1b88c40b
commit 5a19ee1a71
10 changed files with 93 additions and 75 deletions

View file

@ -19,7 +19,8 @@ class HuggingfaceError(Exception):
# contains any default values we need to pass to the provider
HuggingfaceConfig = {
"return_full_text": False # override by setting - completion(..,return_full_text=True)
"return_full_text": False, # override by setting - completion(..,return_full_text=True)
"details": True # needed for getting logprobs etc. for tgi models. override by setting - completion(..., details=False)
}
def validate_environment(api_key):