mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fixes to testing
This commit is contained in:
parent
09d63a6e73
commit
ce827faa93
7 changed files with 91 additions and 167 deletions
|
@ -132,6 +132,7 @@ def completion(
|
|||
# model specific optional params
|
||||
top_k=40,# used by text-bison only
|
||||
task: Optional[str]="text-generation-inference", # used by huggingface inference endpoints
|
||||
return_full_text: bool = False, # used by huggingface TGI
|
||||
remove_input: bool = True, # used by nlp cloud models - prevents input text from being returned as part of output
|
||||
request_timeout=0, # unused var for old version of OpenAI API
|
||||
fallbacks=[],
|
||||
|
@ -181,7 +182,8 @@ def completion(
|
|||
custom_llm_provider=custom_llm_provider,
|
||||
top_k=top_k,
|
||||
task=task,
|
||||
remove_input=remove_input
|
||||
remove_input=remove_input,
|
||||
return_full_text=return_full_text
|
||||
)
|
||||
# For logging - save the values of the litellm-specific params passed in
|
||||
litellm_params = get_litellm_params(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue