fix optional params
This commit is contained in:
parent
3fc0d8fda9
commit
ce7ce3b719
1168
litellm/llms/.ipynb_checkpoints/vertex_ai-checkpoint.py
Normal file
1168
litellm/llms/.ipynb_checkpoints/vertex_ai-checkpoint.py
Normal file
File diff suppressed because it is too large
Load Diff
@ -560,8 +560,7 @@ def completion(
|
||||
)
|
||||
response = llm_model.predict(
|
||||
endpoint=endpoint_path,
|
||||
instances=instances,
|
||||
**optional_params,
|
||||
instances=instances
|
||||
).predictions
|
||||
|
||||
completion_response = response[0]
|
||||
@ -590,8 +589,7 @@ def completion(
|
||||
f"llm_model.predict(instances={instances}, **{optional_params})\n"
|
||||
)
|
||||
response = llm_model.predict(
|
||||
instances=instances,
|
||||
**optional_params,
|
||||
instances=instances
|
||||
).predictions
|
||||
|
||||
completion_response = response[0]
|
||||
@ -791,7 +789,6 @@ async def async_completion(
|
||||
response_obj = await llm_model.predict(
|
||||
endpoint=endpoint_path,
|
||||
instances=instances,
|
||||
**optional_params,
|
||||
)
|
||||
response = response_obj.predictions
|
||||
completion_response = response[0]
|
||||
@ -807,7 +804,6 @@ async def async_completion(
|
||||
)
|
||||
response_obj = await llm_model.predict_async(
|
||||
instances=instances,
|
||||
**optional_params,
|
||||
)
|
||||
|
||||
response = response_obj.predictions
|
||||
@ -980,7 +976,6 @@ async def async_streaming(
|
||||
response_obj = await llm_model.predict(
|
||||
endpoint=endpoint_path,
|
||||
instances=instances,
|
||||
**optional_params,
|
||||
)
|
||||
|
||||
response = response_obj.predictions
|
||||
@ -999,7 +994,6 @@ async def async_streaming(
|
||||
request_str += f"llm_model.predict_async(instances={instances}, **{optional_params})\n"
|
||||
response_obj = await llm_model.predict_async(
|
||||
instances=instances,
|
||||
**optional_params,
|
||||
)
|
||||
response = response_obj.predictions
|
||||
completion_response = response[0]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user