mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
prettier
This commit is contained in:
@@ -110,7 +110,10 @@ export const useAllBlockContent = () => {
|
||||
}
|
||||
};
|
||||
|
||||
const unsubscribe = api.onWebSocketMessage("notification", handleNotification);
|
||||
const unsubscribe = api.onWebSocketMessage(
|
||||
"notification",
|
||||
handleNotification,
|
||||
);
|
||||
|
||||
return () => {
|
||||
unsubscribe();
|
||||
|
||||
@@ -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)}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user