Skip to content

Commit 734efbf

Browse files
refactor(config): update OpenAI env vars
- Switch to OPENAI_API_* env vars for keys and base URL - Bump related dev dependencies to 4.0.0-beta.41 Migrates environment variable names to API-prefixed keys and updates related dev dependencies to beta.41 for consistency. Co-Authored-By: Ai Commit <41898282+github-actions[bot]@users.noreply.github.com>
1 parent c67f6de commit 734efbf

5 files changed

Lines changed: 34 additions & 36 deletions

File tree

.ai-commit/config.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/effect-anything/ai-commit/refs/heads/main/schemas/project-config.schema.json",
3+
"scopes": [
4+
{ "name": "cli", "description": "Command line interface commands and related logic" },
5+
{ "name": "config", "description": "Configuration files and environment settings" },
6+
{ "name": "domain", "description": "Core domain entities and business logic" },
7+
{
8+
"name": "services",
9+
"description": "Service layer implementations handling various functionalities"
10+
},
11+
{ "name": "shared", "description": "Utility modules and shared helper functions" },
12+
{ "name": "tests", "description": "Test suites and test helpers" }
13+
]
14+
}

.ai-commit/config.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

bun.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@
6161
},
6262
"devDependencies": {
6363
"@changesets/cli": "^2.29.7",
64-
"@effect/ai-openai": "4.0.0-beta.40",
65-
"@effect/platform-node": "4.0.0-beta.40",
64+
"@effect/ai-openai": "4.0.0-beta.41",
65+
"@effect/platform-node": "4.0.0-beta.41",
6666
"@effect/tsgo": "0.0.20",
67-
"@effect/vitest": "4.0.0-beta.40",
67+
"@effect/vitest": "4.0.0-beta.41",
6868
"@types/node": "^25.5.0",
6969
"@typescript/native-preview": "7.0.0-dev.20260327.2",
70-
"effect": "4.0.0-beta.40",
70+
"effect": "4.0.0-beta.41",
7171
"lefthook": "^2.1.4",
7272
"oxfmt": "^0.42.0",
7373
"oxlint": "^1.57.0",
@@ -79,10 +79,10 @@
7979
"node": ">=24"
8080
},
8181
"inlinedDependencies": {
82-
"@effect/ai-openai": "4.0.0-beta.40",
83-
"@effect/platform-node": "4.0.0-beta.40",
84-
"@effect/platform-node-shared": "4.0.0-beta.40",
85-
"effect": "4.0.0-beta.40",
82+
"@effect/ai-openai": "4.0.0-beta.41",
83+
"@effect/platform-node": "4.0.0-beta.41",
84+
"@effect/platform-node-shared": "4.0.0-beta.41",
85+
"effect": "4.0.0-beta.41",
8686
"ini": "6.0.0",
8787
"toml": "3.0.0",
8888
"yaml": "2.8.3"

src/config/env.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,12 @@ const readPreferredEnv = Effect.fn(function* (names: ReadonlyArray<string>, fall
2222
});
2323

2424
export const buildEnvironment = Effect.gen(function* () {
25-
const apiKey = yield* readPreferredEnv(["OPENAI_COMPACT_API_KEY", "GIT_AGENT_BUILD_API_KEY"], "");
25+
const apiKey = yield* readPreferredEnv(["OPENAI_API_KEY", "GIT_AGENT_BUILD_API_KEY"], "");
2626
const baseUrl = yield* readPreferredEnv(
27-
["OPENAI_COMPACT_API_BASE_URL", "GIT_AGENT_BUILD_BASE_URL"],
27+
["OPENAI_API_BASE_URL", "GIT_AGENT_BUILD_BASE_URL"],
2828
DefaultBaseUrl,
2929
);
30-
const model = yield* readPreferredEnv(
31-
["OPENAI_COMPACT_MODEL", "GIT_AGENT_BUILD_MODEL"],
32-
DefaultModel,
33-
);
30+
const model = yield* readPreferredEnv(["OPENAI_MODEL", "GIT_AGENT_BUILD_MODEL"], DefaultModel);
3431
const gitignoreBaseUrl = yield* envStringWithDefault(
3532
"GIT_AGENT_GITIGNORE_BASE_URL",
3633
DefaultGitignoreBaseUrl,

0 commit comments

Comments
 (0)