fix: address Hermes adapter review feedback

This commit is contained in:
HenkDz
2026-03-28 11:35:58 +01:00
parent 1583a2d65a
commit 582f4ceaf4
5 changed files with 12 additions and 8 deletions
+1 -1
View File
@@ -227,7 +227,7 @@ export function listServerAdapters(): ServerAdapterModule[] {
export async function detectAdapterModel(
type: string,
): Promise<{ model: string | null; provider: string | null; source: string | null } | null> {
): Promise<{ model: string; provider: string; source: string } | null> {
const adapter = adaptersByType.get(type);
if (!adapter?.detectModel) return null;
const detected = await adapter.detectModel();
+1 -1
View File
@@ -677,7 +677,7 @@ export function agentRoutes(db: Db) {
const type = req.params.type as string;
const detected = await detectAdapterModel(type);
res.json(detected ?? { model: null, provider: null, source: null });
res.json(detected);
});
router.post(