Skip to content

feat: include raw API responses in LLM error objects for better debug… #583

feat: include raw API responses in LLM error objects for better debug…

feat: include raw API responses in LLM error objects for better debug… #583

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# https://github.com/erlef/setup-beam/tree/v1.18.2
name: Elixir CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
OPENAI_API_KEY: invalid
ANTHROPIC_API_KEY: invalid
GOOGLE_API_KEY: invalid
AWS_ACCESS_KEY_ID: invalid
AWS_SECRET_ACCESS_KEY: invalid
AWS_REGION: invalid
PERPLEXITY_API_KEY: invalid
MISTRAL_API_KEY: invalid
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- pair:
elixir: "1.16"
otp: "25"
- pair:
elixir: "1.18"
otp: "27"
lint: lint
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
elixir-version: "1.18"
otp-version: "27"
- uses: actions/cache@v4
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- run: mix deps.get
- run: mix format --check-formatted
if: ${{ matrix.lint }}
- run: mix deps.get && mix deps.unlock --check-unused
if: ${{ matrix.lint }}
- run: mix deps.compile
- run: mix compile --warnings-as-errors
if: ${{ matrix.lint }}
- name: Run tests
run: mix test