mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-11 09:11:13 +00:00
fix(ci): keep self-hosted setup out of plugin internals
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user