mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-15 14:08:00 +00:00
remove redundant request provider data checking from SambaNovaInferenceAdapter
This commit is contained in:
parent
a88f5dd5ab
commit
c641eba5e9
1 changed files with 1 additions and 8 deletions
|
@ -77,16 +77,9 @@ class SambaNovaInferenceAdapter(LiteLLMOpenAIMixin):
|
||||||
else request.tool_config.tool_choice
|
else request.tool_config.tool_choice
|
||||||
)
|
)
|
||||||
|
|
||||||
provider_data = self.get_request_provider_data()
|
|
||||||
key_field = self.provider_data_api_key_field
|
|
||||||
if provider_data and getattr(provider_data, key_field, None):
|
|
||||||
api_key = getattr(provider_data, key_field)
|
|
||||||
else:
|
|
||||||
api_key = self.get_api_key()
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"model": request.model,
|
"model": request.model,
|
||||||
"api_key": api_key,
|
"api_key": self.get_api_key(),
|
||||||
"api_base": self.config.url,
|
"api_base": self.config.url,
|
||||||
**input_dict,
|
**input_dict,
|
||||||
"stream": request.stream,
|
"stream": request.stream,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue