chore(settings): align default ai model handling
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { VALUE_SCORE_WEIGHTS } from "@capakraken/shared";
|
||||
import { DEFAULT_OPENAI_MODEL, VALUE_SCORE_WEIGHTS } from "@capakraken/shared";
|
||||
import { z } from "zod";
|
||||
import {
|
||||
isAiConfigured,
|
||||
@@ -238,7 +238,7 @@ export async function testRuntimeAiConnection(settings: {
|
||||
});
|
||||
}
|
||||
|
||||
const model = configuredSettings.azureOpenAiDeployment ?? "gpt-4o-mini";
|
||||
const model = configuredSettings.azureOpenAiDeployment ?? DEFAULT_OPENAI_MODEL;
|
||||
return performAiConnectionFetch(
|
||||
provider,
|
||||
"https://api.openai.com/v1/chat/completions",
|
||||
|
||||
Reference in New Issue
Block a user