mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-17 21:59:49 +00:00
debug and fix
This commit is contained in:
parent
3bfbc212fa
commit
1a01ce6a2c
2 changed files with 7 additions and 2 deletions
4
.github/actions/setup-runner/action.yml
vendored
4
.github/actions/setup-runner/action.yml
vendored
|
|
@ -25,6 +25,9 @@ runs:
|
||||||
uv sync --all-groups
|
uv sync --all-groups
|
||||||
uv pip install ollama faiss-cpu
|
uv pip install ollama faiss-cpu
|
||||||
|
|
||||||
|
# You must install llama-stack first because otherwise it will overwrite llama-stack-client-python
|
||||||
|
uv pip install -e .
|
||||||
|
|
||||||
# Install llama-stack-client-python based on the client-version input
|
# Install llama-stack-client-python based on the client-version input
|
||||||
if [ "${{ inputs.client-version }}" = "latest" ]; then
|
if [ "${{ inputs.client-version }}" = "latest" ]; then
|
||||||
echo "Installing latest llama-stack-client-python from main branch"
|
echo "Installing latest llama-stack-client-python from main branch"
|
||||||
|
|
@ -37,4 +40,3 @@ runs:
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
uv pip install -e .
|
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
from typing import Any
|
from typing import Any
|
||||||
from uuid import uuid4
|
from uuid import uuid4
|
||||||
|
|
||||||
|
import llama_stack_client as lsc_package
|
||||||
import pytest
|
import pytest
|
||||||
import requests
|
import requests
|
||||||
from llama_stack_client import Agent, AgentEventLogger, Document
|
from llama_stack_client import Agent, AgentEventLogger, Document
|
||||||
|
|
@ -134,7 +135,9 @@ def test_agent_simple(llama_stack_client, agent_config):
|
||||||
|
|
||||||
|
|
||||||
def test_agent_name(llama_stack_client, text_model_id):
|
def test_agent_name(llama_stack_client, text_model_id):
|
||||||
print(f"llama stack client package location: {llama_stack_client.__file__}")
|
print(f"llama stack client package version: {lsc_package.__version__}")
|
||||||
|
print(f"llama stack client package location: {lsc_package.__file__}")
|
||||||
|
|
||||||
agent_name = f"test-agent-{uuid4()}"
|
agent_name = f"test-agent-{uuid4()}"
|
||||||
agent = Agent(
|
agent = Agent(
|
||||||
llama_stack_client,
|
llama_stack_client,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue