mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-23 02:22:25 +00:00
Add X-LlamaStack-Client-Version, rename ProviderData -> Provider-Data
This commit is contained in:
parent
a5c57cd381
commit
9b45a2f0a0
13 changed files with 1281 additions and 152 deletions
|
|
@ -156,7 +156,7 @@ class BraintrustScoringImpl(
|
|||
provider_data = self.get_request_provider_data()
|
||||
if provider_data is None or not provider_data.openai_api_key:
|
||||
raise ValueError(
|
||||
'Pass OpenAI API Key in the header X-LlamaStack-ProviderData as { "openai_api_key": <your api key>}'
|
||||
'Pass OpenAI API Key in the header X-LlamaStack-Provider-Data as { "openai_api_key": <your api key>}'
|
||||
)
|
||||
self.config.openai_api_key = provider_data.openai_api_key
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue