This commit is contained in:
ishaan-jaff 2023-09-26 10:11:53 -07:00
parent 3ebb2c667c
commit 5944b1bbab
2 changed files with 3 additions and 3 deletions

View file

@ -19,8 +19,8 @@ def completion(
model: str,
messages: list,
model_response: ModelResponse,
api_key: str,
print_verbose: Callable,
api_key,
encoding,
logging_obj,
optional_params=None,

View file

@ -794,7 +794,7 @@ def completion(
return response
response = model_response
elif custom_llm_provider == "palm":
api_key = (
palm_api_key = (
api_key
or get_secret("PALM_API_KEY")
or litellm.api_key
@ -809,7 +809,7 @@ def completion(
litellm_params=litellm_params,
logger_fn=logger_fn,
encoding=encoding,
api_key=api_key,
api_key=palm_api_key,
logging_obj=logging
)
if "stream_tokens" in optional_params and optional_params["stream_tokens"] == True: