Skip to content

Commit 696b358

Browse files
committed
Merge branch 'main' of https://github.com/cougrimes/WrenAI
2 parents 2da63b6 + a2ac6f0 commit 696b358

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+3621
-2490
lines changed
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: Wren Launcher CI
2+
3+
on:
4+
pull_request:
5+
types: [synchronize, labeled]
6+
paths:
7+
- 'wren-launcher/**'
8+
- '.github/workflows/wren-launcher-ci.yaml'
9+
10+
permissions:
11+
contents: read
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
15+
cancel-in-progress: true
16+
17+
defaults:
18+
run:
19+
working-directory: wren-launcher
20+
21+
jobs:
22+
golangci:
23+
name: lint
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: actions/setup-go@v5
28+
with:
29+
go-version: '1.24'
30+
cache-dependency-path: wren-launcher/go.sum
31+
- name: golangci-lint
32+
uses: golangci/golangci-lint-action@v8
33+
with:
34+
version: v2.3.1
35+
working-directory: wren-launcher
36+
37+
fmt-and-test:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v4
42+
- name: Setup Go
43+
uses: actions/setup-go@v5
44+
with:
45+
go-version: '1.24'
46+
cache-dependency-path: wren-launcher/go.sum
47+
- name: Install goimports
48+
run: go install golang.org/x/tools/cmd/goimports@latest
49+
- name: Download dependencies
50+
run: go mod download
51+
- name: Run format check
52+
run: |
53+
make fmt
54+
# Check if there are any formatting changes
55+
if [ -n "$(git diff --name-only)" ]; then
56+
echo "Code is not formatted properly. Please run 'make fmt' and commit the changes."
57+
git diff
58+
exit 1
59+
fi
60+
- name: Run go vet
61+
run: make vet
62+
- name: Run tests
63+
run: go test ./commands/dbt
64+
65+
security-scan:
66+
runs-on: ubuntu-latest
67+
needs: fmt-and-test
68+
steps:
69+
- name: Checkout repository
70+
uses: actions/checkout@v4
71+
- name: Setup Go
72+
uses: actions/setup-go@v5
73+
with:
74+
go-version: '1.24'
75+
cache-dependency-path: wren-launcher/go.sum
76+
- name: Run Gosec Security Scanner
77+
run: |
78+
go install github.com/securego/gosec/v2/cmd/gosec@latest
79+
gosec ./...
80+
- name: Run Go mod audit
81+
run: |
82+
go mod verify
83+
go list -json -deps ./... | jq -r '.Module | select(.Version) | "\(.Path) \(.Version)"' | sort -u

deployment/kustomizations/base/cm.yaml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,27 @@ data:
7575
n: 1
7676
seed: 0
7777
temperature: 0
78-
78+
- model: gpt-5-nano-2025-08-07
79+
context_window_size: 380000
80+
kwargs:
81+
max_completion_tokens: 4096
82+
n: 1
83+
seed: 0
84+
reasoning_effort: minimal
85+
- model: gpt-5-mini-2025-08-07
86+
context_window_size: 380000
87+
kwargs:
88+
max_completion_tokens: 4096
89+
n: 1
90+
seed: 0
91+
reasoning_effort: minimal
92+
- model: gpt-5-2025-08-07
93+
context_window_size: 380000
94+
kwargs:
95+
max_completion_tokens: 4096
96+
n: 1
97+
seed: 0
98+
reasoning_effort: minimal
7999
---
80100
type: embedder
81101
provider: litellm_embedder
@@ -138,13 +158,8 @@ data:
138158
llm: litellm_llm.default
139159
- name: relationship_recommendation
140160
llm: litellm_llm.default
141-
engine: wren_ui
142161
- name: question_recommendation
143162
llm: litellm_llm.default
144-
- name: question_recommendation_db_schema_retrieval
145-
llm: litellm_llm.default
146-
embedder: litellm_embedder.default
147-
document_store: qdrant
148163
- name: question_recommendation_sql_generation
149164
llm: litellm_llm.default
150165
engine: wren_ui

docker/.env.example

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ OPENAI_API_KEY=
2020

2121
# version
2222
# CHANGE THIS TO THE LATEST VERSION
23-
WREN_PRODUCT_VERSION=0.26.0
24-
WREN_ENGINE_VERSION=0.18.2
25-
WREN_AI_SERVICE_VERSION=0.25.17
26-
IBIS_SERVER_VERSION=0.18.2
27-
WREN_UI_VERSION=0.30.1
23+
WREN_PRODUCT_VERSION=0.27.0
24+
WREN_ENGINE_VERSION=0.18.3
25+
WREN_AI_SERVICE_VERSION=0.27.1
26+
IBIS_SERVER_VERSION=0.18.3
27+
WREN_UI_VERSION=0.31.1
2828
WREN_BOOTSTRAP_VERSION=0.1.5
2929

3030
# user id (uuid v4)

docker/config.example.yaml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,27 @@ models:
2424
n: 1
2525
seed: 0
2626
temperature: 0
27-
27+
- model: gpt-5-nano-2025-08-07
28+
context_window_size: 380000
29+
kwargs:
30+
max_completion_tokens: 4096
31+
n: 1
32+
seed: 0
33+
reasoning_effort: minimal
34+
- model: gpt-5-mini-2025-08-07
35+
context_window_size: 380000
36+
kwargs:
37+
max_completion_tokens: 4096
38+
n: 1
39+
seed: 0
40+
reasoning_effort: minimal
41+
- model: gpt-5-2025-08-07
42+
context_window_size: 380000
43+
kwargs:
44+
max_completion_tokens: 4096
45+
n: 1
46+
seed: 0
47+
reasoning_effort: minimal
2848
---
2949
type: embedder
3050
provider: litellm_embedder
@@ -88,13 +108,8 @@ pipes:
88108
llm: litellm_llm.default
89109
- name: relationship_recommendation
90110
llm: litellm_llm.default
91-
engine: wren_ui
92111
- name: question_recommendation
93112
llm: litellm_llm.default
94-
- name: question_recommendation_db_schema_retrieval
95-
llm: litellm_llm.default
96-
embedder: litellm_embedder.default
97-
document_store: qdrant
98113
- name: question_recommendation_sql_generation
99114
llm: litellm_llm.default
100115
engine: wren_ui

0 commit comments

Comments
 (0)