Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ GROQ_API_KEY=
GITHUB_APP_ID=
GITHUB_APP_PRIVATE_KEY=
GITHUB_WEBHOOK_SECRET=
SMEE_URL=
NEO4J_AUTH=neo4j/sniper_dev
NEO4J_URI=bolt://localhost:7687
10 changes: 8 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ jobs:
uses: astral-sh/setup-uv@v4

- name: Install dependencies
run: make install
run: |
mix deps.get
cd pythonbridge
uv sync

- name: Run lint
run: make lint
run: |
mix format
cd pythonbridge
uv run ruff check .
39 changes: 0 additions & 39 deletions Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion pythonbridge/llm/groq/groq.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pythonbridge.core import config


DEFAULT_MODEL = "llama-3.3-70b-versatile"
DEFAULT_MODEL = "openai/gpt-oss-120b"


# NOTE: No need to use AsyncGroq since a new, independent python process will be started by Elixir
Expand Down
30 changes: 30 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env bash

set -euo pipefail

cd "$(dirname "$0")"

if [[ -f .env ]]; then
source .env
fi

if [[ -z "${SMEE_URL:-}" ]]; then
echo "Set SMEE_URL in .env"
exit 1
fi

if ! command -v smee >/dev/null; then
echo "Install Smee before running Sniper"
exit 1
fi

smee -u "$SMEE_URL" --path /webhook --port 4000 &
smee_pid=$!

cleanup() {
kill "$smee_pid" 2>/dev/null || true
}

trap cleanup EXIT INT TERM

mix run --no-halt
Loading