mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-21 16:27:18 +02:00
fix: address Hermes adapter review feedback
This commit is contained in:
1 parent
1583a2d65a
commit
582f4ceaf4
5 files changed
+12
-8
No files matched your search
@@ -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();
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user