Skip to content

Commit 9780315

Browse files
authored
Merge pull request #64 from JacobLinCool/update-default-model
feat: update default model to gpt-4.1-mini in README and source code
2 parents 675bc77 + 93134ab commit 9780315

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/checkout@v4
2222

2323
- name: Setup PNPM
24-
uses: pnpm/action-setup@v2.2.4
24+
uses: pnpm/action-setup@v4
2525
with:
2626
run_install: true
2727

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: actions/checkout@v4
1919

2020
- name: Setup PNPM
21-
uses: pnpm/action-setup@v2.2.4
21+
uses: pnpm/action-setup@v4
2222
with:
2323
run_install: true
2424

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ OpenAI API:
4848

4949
- `OPENAI_API_KEY`: OpenAI API key for Semantic Query.
5050
- `OPENAI_API_URL`: You may use this with Cloudflare AI Gateway to proxy requests to OpenAI API.
51-
- `OPENAI_MODEL`: OpenAI API model for Semantic Query. Default to `gpt-3.5-turbo-1106`.
51+
- `OPENAI_MODEL`: OpenAI API model for Semantic Query. Default to `gpt-4.1-mini`.
5252

5353
Cloudflare AI Worker:
5454

@@ -67,4 +67,4 @@ Cloudflare AI Worker:
6767

6868
![semantic-query](./images/semantic-query.png)
6969

70-
> Semantic Query uses OpenAI GPT-3.5 Turbo to translate natural language queries into SQL.
70+
> Semantic Query uses OpenAI GPT-4.1 Mini to translate natural language queries into SQL.

src/lib/server/ai/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ debug.enable("aid*");
88
const log = debug("assistant");
99
log.enabled = true;
1010

11-
const OPENAI_MODEL = env.OPENAI_MODEL || "gpt-3.5-turbo-1106";
11+
const OPENAI_MODEL = env.OPENAI_MODEL || "gpt-4.1-mini";
1212
const CFAI_MODEL = env.CFAI_MODEL || "@cf/mistral/mistral-7b-instruct-v0.1";
1313

1414
/**

0 commit comments

Comments
 (0)