Adding safety adapter for Together

This commit is contained in:
Yogish Baliga 2024-09-20 09:35:01 -07:00 committed by Ashwin Bharambe
parent 0d2eb3bd25
commit b85d675c6f
8 changed files with 188 additions and 23 deletions

View file

@ -49,7 +49,14 @@ class SafetyClient(Safety):
shield_type=shield_type,
messages=[encodable_dict(m) for m in messages],
),
headers={"Content-Type": "application/json"},
headers={
"Content-Type": "application/json",
"X-LlamaStack-ProviderData": json.dumps(
{
"together_api_key": "1882f9a484fc7c6ce3e4dc90272d5db52346c93838daab3d704803181f396b22"
}
),
},
timeout=20,
)