Skip to content

Commit d477f92

Browse files
authored
Merge pull request #48 from devakone/develop
Release: develop → main
2 parents 53c9bea + 054847b commit d477f92

4 files changed

Lines changed: 21 additions & 7 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
".": "0.1.0-alpha.17",
3-
"apps/web": "0.1.0-alpha.17",
2+
".": "0.1.0-alpha.18",
3+
"apps/web": "0.1.0-alpha.18",
44
"apps/worker": "0.1.0-alpha.3"
55
}

CHANGELOG-DEVELOP.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [0.1.0-alpha.18](https://github.com/devakone/vibe-coding-profiler/compare/vibe-coding-profiler-v0.1.0-alpha.17...vibe-coding-profiler-v0.1.0-alpha.18) (2026-02-12)
4+
5+
6+
### Bug Fixes
7+
8+
* correct LLM config column names to match DB schema ([1c5411a](https://github.com/devakone/vibe-coding-profiler/commit/1c5411a0557edbcdfe81c9792966c8705611847d))
9+
310
## [0.1.0-alpha.17](https://github.com/devakone/vibe-coding-profiler/compare/vibe-coding-profiler-v0.1.0-alpha.16...vibe-coding-profiler-v0.1.0-alpha.17) (2026-02-12)
411

512

apps/web/CHANGELOG-DEVELOP.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [0.1.0-alpha.18](https://github.com/devakone/vibe-coding-profiler/compare/web-v0.1.0-alpha.17...web-v0.1.0-alpha.18) (2026-02-12)
4+
5+
6+
### Bug Fixes
7+
8+
* correct LLM config column names to match DB schema ([1c5411a](https://github.com/devakone/vibe-coding-profiler/commit/1c5411a0557edbcdfe81c9792966c8705611847d))
9+
310
## [0.1.0-alpha.17](https://github.com/devakone/vibe-coding-profiler/compare/web-v0.1.0-alpha.16...web-v0.1.0-alpha.17) (2026-02-12)
411

512

apps/web/src/lib/llm-config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,8 @@ interface PlatformLLMConfigRecord {
7474
api_key_encrypted: string;
7575
model: string | null;
7676
is_active: boolean;
77-
platform_limit: number | null;
77+
free_tier_limit: number | null;
7878
llm_disabled: boolean | null;
79-
profile_llm_repo_limit: number | null;
8079
}
8180

8281
// Type for llm_configs queries (until DB types regenerated)
@@ -242,7 +241,7 @@ async function getPlatformLLMConfigFromDB(): Promise<{
242241
// eslint-disable-next-line @typescript-eslint/no-explicit-any
243242
const { data, error } = await (service as any)
244243
.from("llm_configs")
245-
.select("id, provider, api_key_encrypted, model, is_active, platform_limit, llm_disabled, profile_llm_repo_limit")
244+
.select("id, provider, api_key_encrypted, model, is_active, free_tier_limit, llm_disabled")
246245
.eq("scope", "platform")
247246
.maybeSingle();
248247

@@ -251,9 +250,10 @@ async function getPlatformLLMConfigFromDB(): Promise<{
251250
}
252251

253252
const record = data as PlatformLLMConfigRecord;
254-
const perRepoLimit = record.platform_limit ?? DEFAULT_LLM_ANALYSES_PER_REPO;
253+
const perRepoLimit = record.free_tier_limit ?? DEFAULT_LLM_ANALYSES_PER_REPO;
255254
const llmDisabled = record.llm_disabled ?? false;
256-
const profileLlmRepoLimit = record.profile_llm_repo_limit ?? DEFAULT_PROFILE_LLM_REPO_LIMIT;
255+
// profile_llm_repo_limit not in DB schema yet, use default
256+
const profileLlmRepoLimit = DEFAULT_PROFILE_LLM_REPO_LIMIT;
257257

258258
if (llmDisabled || !record.api_key_encrypted) {
259259
return { config: null, perRepoLimit, llmDisabled, profileLlmRepoLimit };

0 commit comments

Comments
 (0)