forked from phoenix-oss/llama-stack-mirror
minor refactor
This commit is contained in:
parent
cd40a5fdbf
commit
ab7145a04f
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ class BraintrustScoringImpl(
|
|||
|
||||
async def set_api_key(self) -> None:
|
||||
# api key is in the request headers
|
||||
if self.config.openai_api_key is None or not self.config.openai_api_key:
|
||||
if not self.config.openai_api_key:
|
||||
provider_data = self.get_request_provider_data()
|
||||
if provider_data is None or not provider_data.openai_api_key:
|
||||
raise ValueError(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue