This commit is contained in:
Bentlybro
2026-01-06 13:01:51 +00:00
parent 9b8b6252c5
commit 9b6dc3be12
4 changed files with 26 additions and 20 deletions

View File

@@ -110,7 +110,10 @@ export const useAllBlockContent = () => {
}
};
const unsubscribe = api.onWebSocketMessage("notification", handleNotification);
const unsubscribe = api.onWebSocketMessage(
"notification",
handleNotification,
);
return () => {
unsubscribe();

View File

@@ -1176,8 +1176,8 @@ const NodeStringInput: FC<{
<SelectValue placeholder={schema.placeholder || displayName} />
</SelectTrigger>
<SelectContent className="nodrag">
{schema.enum!
.filter((option) => option)
{schema
.enum!.filter((option) => option)
.map((option, index) => (
<SelectItem key={index} value={option}>
{beautifyString(option)}

View File

@@ -105,7 +105,9 @@ export default function useAgentGraph(
notification?.type === "LLM_REGISTRY_REFRESH" ||
notification?.event === "registry_updated"
) {
console.log("Received LLM registry refresh notification, reloading blocks...");
console.log(
"Received LLM registry refresh notification, reloading blocks...",
);
loadBlocks();
}
},

View File

@@ -406,9 +406,7 @@ export default class BackendAPI {
return this._get("/llm/providers", query);
}
listAdminLlmProviders(
includeModels = true,
): Promise<LlmProvidersResponse> {
listAdminLlmProviders(includeModels = true): Promise<LlmProvidersResponse> {
const query = includeModels ? { include_models: true } : undefined;
return this._get("/llm/admin/llm/providers", query);
}
@@ -443,11 +441,7 @@ export default class BackendAPI {
modelId: string,
payload: UpdateLlmModelRequest,
): Promise<LlmModel> {
return this._request(
"PATCH",
`/llm/admin/llm/models/${modelId}`,
payload,
);
return this._request("PATCH", `/llm/admin/llm/models/${modelId}`, payload);
}
toggleAdminLlmModel(
@@ -477,11 +471,9 @@ export default class BackendAPI {
nodes_migrated: number;
message: string;
}> {
return this._request(
"DELETE",
`/llm/admin/llm/models/${modelId}`,
{ replacement_model_slug: replacementModelSlug },
);
return this._request("DELETE", `/llm/admin/llm/models/${modelId}`, {
replacement_model_slug: replacementModelSlug,
});
}
// Migration management
@@ -497,8 +489,13 @@ export default class BackendAPI {
return this._get(`/llm/admin/llm/migrations/${migrationId}`);
}
revertAdminLlmMigration(migrationId: string): Promise<RevertMigrationResponse> {
return this._request("POST", `/llm/admin/llm/migrations/${migrationId}/revert`);
revertAdminLlmMigration(
migrationId: string,
): Promise<RevertMigrationResponse> {
return this._request(
"POST",
`/llm/admin/llm/migrations/${migrationId}/revert`,
);
}
// Creator management
@@ -520,7 +517,11 @@ export default class BackendAPI {
creatorId: string,
payload: UpsertLlmCreatorRequest,
): Promise<LlmModelCreator> {
return this._request("PATCH", `/llm/admin/llm/creators/${creatorId}`, payload);
return this._request(
"PATCH",
`/llm/admin/llm/creators/${creatorId}`,
payload,
);
}
deleteAdminLlmCreator(