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
+4 -4
View File
@@ -28,9 +28,9 @@ export interface AdapterModel {
}
export interface DetectedAdapterModel {
model: string | null;
provider: string | null;
source: string | null;
model: string;
provider: string;
source: string;
}
export interface ClaudeLoginResult {
@@ -166,7 +166,7 @@ export const agentsApi = {
`/companies/${encodeURIComponent(companyId)}/adapters/${encodeURIComponent(type)}/models`,
),
detectModel: (companyId: string, type: string) =>
api.get<DetectedAdapterModel>(
api.get<DetectedAdapterModel | null>(
`/companies/${encodeURIComponent(companyId)}/adapters/${encodeURIComponent(type)}/detect-model`,
),
testEnvironment: (