diff --git a/.github/gallery-agent/agent.go b/.github/gallery-agent/agent.go index 096496cfe..0b6a0d81a 100644 --- a/.github/gallery-agent/agent.go +++ b/.github/gallery-agent/agent.go @@ -141,7 +141,7 @@ func getRealReadme(ctx context.Context, repository string) (string, error) { result = result.AddMessage("user", "Describe the model in a clear and concise way that can be shared in a model gallery.") // Get a response - newFragment, err := llm.Ask(ctx, result) + _, err = llm.Ask(ctx, result) if err != nil { return "", err } diff --git a/.github/gallery-agent/tools.go b/.github/gallery-agent/tools.go index 3e2fc2f3a..10d0f57fb 100644 --- a/.github/gallery-agent/tools.go +++ b/.github/gallery-agent/tools.go @@ -13,16 +13,16 @@ type HFReadmeTool struct { client *hfapi.Client } -func (s *HFReadmeTool) Execute(args map[string]any) (string, error) { +func (s *HFReadmeTool) Execute(args map[string]any) (string, any, error) { q, ok := args["repository"].(string) if !ok { - return "", fmt.Errorf("no query") + return "", nil, fmt.Errorf("no query") } readme, err := s.client.GetReadmeContent(q, "README.md") if err != nil { - return "", err + return "", nil, err } - return readme, nil + return readme, nil, nil } func (s *HFReadmeTool) Tool() openai.Tool { diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e54f3003e..447f910b2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -93,27 +93,10 @@ jobs: - name: Dependencies run: | sudo apt-get update - sudo apt-get install build-essential ccache upx-ucl curl ffmpeg - sudo apt-get install -y libgmock-dev clang - # Install UV - curl -LsSf https://astral.sh/uv/install.sh | sh - sudo apt-get install -y ca-certificates cmake patch python3-pip unzip - sudo apt-get install -y libopencv-dev - - curl -L -s https://github.com/protocolbuffers/protobuf/releases/download/v26.1/protoc-26.1-linux-x86_64.zip -o protoc.zip && \ - unzip -j -d /usr/local/bin protoc.zip bin/protoc && \ - rm protoc.zip - - curl -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb - sudo dpkg -i cuda-keyring_1.1-1_all.deb - sudo apt-get update - sudo apt-get install -y cuda-nvcc-${CUDA_VERSION} libcublas-dev-${CUDA_VERSION} - export CUDACXX=/usr/local/cuda/bin/nvcc - make -C backend/python/transformers - - make backends/huggingface backends/llama-cpp backends/local-store backends/silero-vad backends/piper backends/whisper backends/stablediffusion-ggml - env: - CUDA_VERSION: 12-4 + sudo apt-get install curl ffmpeg + - name: Build backends + run: | + make backends/transformers backends/huggingface backends/llama-cpp backends/local-store backends/silero-vad backends/piper backends/whisper backends/stablediffusion-ggml - name: Test run: | PATH="$PATH:/root/go/bin" GO_TAGS="tts" make --jobs 5 --output-sync=target test