forked from phoenix-oss/llama-stack-mirror
add keycloak auth to playground ui
This commit is contained in:
parent
ed31462499
commit
3bde47e562
5 changed files with 38 additions and 1 deletions
|
@ -7,11 +7,13 @@
|
|||
import os
|
||||
|
||||
from llama_stack_client import LlamaStackClient
|
||||
from llama_stack.distribution.ui.app import get_access_token
|
||||
|
||||
|
||||
class LlamaStackApi:
|
||||
def __init__(self):
|
||||
self.client = LlamaStackClient(
|
||||
api_key=get_access_token(),
|
||||
base_url=os.environ.get("LLAMA_STACK_ENDPOINT", "http://localhost:8321"),
|
||||
provider_data={
|
||||
"fireworks_api_key": os.environ.get("FIREWORKS_API_KEY", ""),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue