fix(ci): keep self-hosted setup out of plugin internals

This commit is contained in:
Vincent Koc 2026-04-05 09:43:26 +01:00
parent de04eeab76
commit 3a9569ff38
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,3 @@
import { isReasoningModelHeuristic } from "../../extensions/ollama/api.js";
import type { ApiKeyCredential, AuthProfileCredential } from "../agents/auth-profiles/types.js";
import { upsertAuthProfileWithLock } from "../agents/auth-profiles/upsert-with-lock.js";
import {
@ -33,6 +32,10 @@ type OpenAICompatModelsResponse = {
}>;
};
function isReasoningModelHeuristic(modelId: string): boolean {
return /r1|reasoning|think|reason/i.test(modelId);
}
export async function discoverOpenAICompatibleLocalModels(params: {
baseUrl: string;
apiKey?: string;