mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 18:10:39 +09:00
fix: address Hermes adapter review feedback
This commit is contained in:
parent
1583a2d65a
commit
582f4ceaf4
5 changed files with 12 additions and 8 deletions
|
|
@ -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: (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue