fix get optional params

This commit is contained in:
Krrish Dholakia 2023-10-02 12:02:45 -07:00
parent 96ef06f5b5
commit eb4c7876e2
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):