mirror of https://github.com/openclaw/openclaw.git
fix(ci): keep self-hosted setup out of plugin internals
This commit is contained in:
parent
de04eeab76
commit
3a9569ff38
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue