fix security update
All checks were successful
Build and Push playground container / build-playground (push) Successful in 1m55s
Build and Push container / build (push) Successful in 4m18s

This commit is contained in:
Angel Nunez Mencias 2025-06-03 20:02:04 +02:00
parent 8943b283e9
commit d851df055a
Signed by: angel.nunez
SSH key fingerprint: SHA256:z1nFAg1v1AfbhEHrgBetByUJUwziv2R2f4VyN75opcg
14 changed files with 48 additions and 41 deletions

View file

@ -12,6 +12,8 @@ from llama_stack.distribution.ui.app import get_access_token
class LlamaStackApi:
def __init__(self):
print("NEW CLIENT")
print(get_access_token())
self.client = LlamaStackClient(
api_key=get_access_token(),
base_url=os.environ.get("LLAMA_STACK_ENDPOINT", "http://localhost:8321"),
@ -30,5 +32,3 @@ class LlamaStackApi:
scoring_params = {fn_id: None for fn_id in scoring_function_ids}
return self.client.scoring.score(input_rows=[row], scoring_functions=scoring_params)
llama_stack_api = LlamaStackApi()