Skip to content

Add LLM clients for OpenAI, Google, Anthropic #17

Add LLM clients for OpenAI, Google, Anthropic

Add LLM clients for OpenAI, Google, Anthropic #17

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ubuntu-latest
services:
llama32-1b:
image: "maragudk/llama-3.2-1b-instruct-q4_k_m"
ports:
- 8090:8080
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -coverprofile=cover.out -shuffle on ./...
env:
OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
ANTHROPIC_TOKEN: ${{ secrets.ANTHROPIC_TOKEN }}
evaluate:
name: Evaluate
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
- name: Evaluate
run: go test -v -shuffle on -run TestEval ./...
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
- name: Lint
uses: golangci/golangci-lint-action@v6
with:
version: latest