feat!: redesign model config + auth profiles
This commit is contained in:
1 parent
bd2e003171
commit
b04c838c15
60 files changed
+2037
-790
No files matched your search
@@ -69,7 +69,8 @@ export function resolveModelTarget(params: {
|
||||
|
||||
export function buildAllowlistSet(cfg: ClawdbotConfig): Set<string> {
|
||||
const allowed = new Set<string>();
|
||||
for (const raw of cfg.agent?.allowedModels ?? []) {
|
||||
const models = cfg.agent?.models ?? {};
|
||||
for (const raw of Object.keys(models)) {
|
||||
const parsed = parseModelRef(String(raw ?? ""), DEFAULT_PROVIDER);
|
||||
if (!parsed) continue;
|
||||
allowed.add(modelKey(parsed.provider, parsed.model));
|
||||
|
||||
Reference in new issue
Block a user