mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-02 08:44:44 +00:00
braintrust api key in config
This commit is contained in:
parent
c699e884b5
commit
001badcca1
16 changed files with 36 additions and 15 deletions
|
@ -11,3 +11,9 @@ class BraintrustScoringConfig(BaseModel):
|
|||
default=None,
|
||||
description="The OpenAI API Key",
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def sample_run_config(cls, **kwargs) -> Dict[str, Any]:
|
||||
return {
|
||||
"openai_api_key": "${env.OPENAI_API_KEY}",
|
||||
}
|
||||
|
|
|
@ -63,7 +63,8 @@ providers:
|
|||
config: {}
|
||||
- provider_id: braintrust
|
||||
provider_type: inline::braintrust
|
||||
config: {}
|
||||
config:
|
||||
openai_api_key: ${env.OPENAI_API_KEY}
|
||||
metadata_store:
|
||||
namespace: null
|
||||
type: sqlite
|
||||
|
|
|
@ -65,7 +65,8 @@ providers:
|
|||
config: {}
|
||||
- provider_id: braintrust
|
||||
provider_type: inline::braintrust
|
||||
config: {}
|
||||
config:
|
||||
openai_api_key: ${env.OPENAI_API_KEY}
|
||||
metadata_store:
|
||||
namespace: null
|
||||
type: sqlite
|
||||
|
|
|
@ -70,7 +70,8 @@ providers:
|
|||
config: {}
|
||||
- provider_id: braintrust
|
||||
provider_type: inline::braintrust
|
||||
config: {}
|
||||
config:
|
||||
openai_api_key: ${env.OPENAI_API_KEY}
|
||||
metadata_store:
|
||||
namespace: null
|
||||
type: sqlite
|
||||
|
|
|
@ -65,7 +65,8 @@ providers:
|
|||
config: {}
|
||||
- provider_id: braintrust
|
||||
provider_type: inline::braintrust
|
||||
config: {}
|
||||
config:
|
||||
openai_api_key: ${env.OPENAI_API_KEY}
|
||||
metadata_store:
|
||||
namespace: null
|
||||
type: sqlite
|
||||
|
|
|
@ -70,7 +70,8 @@ providers:
|
|||
config: {}
|
||||
- provider_id: braintrust
|
||||
provider_type: inline::braintrust
|
||||
config: {}
|
||||
config:
|
||||
openai_api_key: ${env.OPENAI_API_KEY}
|
||||
metadata_store:
|
||||
namespace: null
|
||||
type: sqlite
|
||||
|
|
|
@ -65,7 +65,8 @@ providers:
|
|||
config: {}
|
||||
- provider_id: braintrust
|
||||
provider_type: inline::braintrust
|
||||
config: {}
|
||||
config:
|
||||
openai_api_key: ${env.OPENAI_API_KEY}
|
||||
metadata_store:
|
||||
namespace: null
|
||||
type: sqlite
|
||||
|
|
|
@ -72,7 +72,8 @@ providers:
|
|||
config: {}
|
||||
- provider_id: braintrust
|
||||
provider_type: inline::braintrust
|
||||
config: {}
|
||||
config:
|
||||
openai_api_key: ${env.OPENAI_API_KEY}
|
||||
metadata_store:
|
||||
namespace: null
|
||||
type: sqlite
|
||||
|
|
|
@ -66,7 +66,8 @@ providers:
|
|||
config: {}
|
||||
- provider_id: braintrust
|
||||
provider_type: inline::braintrust
|
||||
config: {}
|
||||
config:
|
||||
openai_api_key: ${env.OPENAI_API_KEY}
|
||||
metadata_store:
|
||||
namespace: null
|
||||
type: sqlite
|
||||
|
|
|
@ -68,7 +68,8 @@ providers:
|
|||
config: {}
|
||||
- provider_id: braintrust
|
||||
provider_type: inline::braintrust
|
||||
config: {}
|
||||
config:
|
||||
openai_api_key: ${env.OPENAI_API_KEY}
|
||||
metadata_store:
|
||||
namespace: null
|
||||
type: sqlite
|
||||
|
|
|
@ -64,7 +64,8 @@ providers:
|
|||
config: {}
|
||||
- provider_id: braintrust
|
||||
provider_type: inline::braintrust
|
||||
config: {}
|
||||
config:
|
||||
openai_api_key: ${env.OPENAI_API_KEY}
|
||||
metadata_store:
|
||||
namespace: null
|
||||
type: sqlite
|
||||
|
|
|
@ -64,7 +64,8 @@ providers:
|
|||
config: {}
|
||||
- provider_id: braintrust
|
||||
provider_type: inline::braintrust
|
||||
config: {}
|
||||
config:
|
||||
openai_api_key: ${env.OPENAI_API_KEY}
|
||||
metadata_store:
|
||||
namespace: null
|
||||
type: sqlite
|
||||
|
|
|
@ -68,7 +68,8 @@ providers:
|
|||
config: {}
|
||||
- provider_id: braintrust
|
||||
provider_type: inline::braintrust
|
||||
config: {}
|
||||
config:
|
||||
openai_api_key: ${env.OPENAI_API_KEY}
|
||||
metadata_store:
|
||||
namespace: null
|
||||
type: sqlite
|
||||
|
|
|
@ -64,7 +64,8 @@ providers:
|
|||
config: {}
|
||||
- provider_id: braintrust
|
||||
provider_type: inline::braintrust
|
||||
config: {}
|
||||
config:
|
||||
openai_api_key: ${env.OPENAI_API_KEY}
|
||||
metadata_store:
|
||||
namespace: null
|
||||
type: sqlite
|
||||
|
|
|
@ -65,7 +65,8 @@ providers:
|
|||
config: {}
|
||||
- provider_id: braintrust
|
||||
provider_type: inline::braintrust
|
||||
config: {}
|
||||
config:
|
||||
openai_api_key: ${env.OPENAI_API_KEY}
|
||||
metadata_store:
|
||||
namespace: null
|
||||
type: sqlite
|
||||
|
|
|
@ -68,7 +68,8 @@ providers:
|
|||
config: {}
|
||||
- provider_id: braintrust
|
||||
provider_type: inline::braintrust
|
||||
config: {}
|
||||
config:
|
||||
openai_api_key: ${env.OPENAI_API_KEY}
|
||||
metadata_store:
|
||||
namespace: null
|
||||
type: sqlite
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue