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
4 changes: 2 additions & 2 deletions .release-please-manifest.develop.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
".": "0.1.0-alpha.17",
"apps/web": "0.1.0-alpha.17",
".": "0.1.0-alpha.18",
"apps/web": "0.1.0-alpha.18",
"apps/worker": "0.1.0-alpha.3"
}
7 changes: 7 additions & 0 deletions CHANGELOG-DEVELOP.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [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)


### Bug Fixes

* correct LLM config column names to match DB schema ([1c5411a](https://github.com/devakone/vibe-coding-profiler/commit/1c5411a0557edbcdfe81c9792966c8705611847d))

## [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)


Expand Down
7 changes: 7 additions & 0 deletions apps/web/CHANGELOG-DEVELOP.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [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)


### Bug Fixes

* correct LLM config column names to match DB schema ([1c5411a](https://github.com/devakone/vibe-coding-profiler/commit/1c5411a0557edbcdfe81c9792966c8705611847d))

## [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)


Expand Down
10 changes: 5 additions & 5 deletions apps/web/src/lib/llm-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ interface PlatformLLMConfigRecord {
api_key_encrypted: string;
model: string | null;
is_active: boolean;
platform_limit: number | null;
free_tier_limit: number | null;
llm_disabled: boolean | null;
profile_llm_repo_limit: number | null;
}

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

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

const record = data as PlatformLLMConfigRecord;
const perRepoLimit = record.platform_limit ?? DEFAULT_LLM_ANALYSES_PER_REPO;
const perRepoLimit = record.free_tier_limit ?? DEFAULT_LLM_ANALYSES_PER_REPO;
const llmDisabled = record.llm_disabled ?? false;
const profileLlmRepoLimit = record.profile_llm_repo_limit ?? DEFAULT_PROFILE_LLM_REPO_LIMIT;
// profile_llm_repo_limit not in DB schema yet, use default
const profileLlmRepoLimit = DEFAULT_PROFILE_LLM_REPO_LIMIT;

if (llmDisabled || !record.api_key_encrypted) {
return { config: null, perRepoLimit, llmDisabled, profileLlmRepoLimit };
Expand Down
Loading