ListView
This module contains views to implement the React.
LLMHost list view in the Smarter Dashboard.
- class smarter.apps.llmhost.views.listview.view.LLMHostComputeListView(**kwargs)[source]
Bases:
SmarterAuthenticatedNeverCachedWebViewRender the LLMHostCompute list view for the Smarter Workbench web console.
It displays the LLMHostComputes available to the authenticated user: the kinds of node, and node groups, that their LLMHosts can run on.
- Returns:
Rendered HTML page, in which the React app @smarter/llmhost-compute-list renders the list.
- Return type:
HttpResponse
- computes: list[LLMHostCompute]
- property formatted_class_name: str
Returns a formatted string of the class name for logging purposes.
- class smarter.apps.llmhost.views.listview.view.LLMHostListView(**kwargs)[source]
Bases:
SmarterAuthenticatedNeverCachedWebViewRender the llmhost list view for the Smarter Workbench web console.
This view displays all llmhosts available to the authenticated user as cards, providing a quick overview and access to llmhost details.
- Parameters:
- Returns:
Rendered HTML page with a card for each llmhost, or a 404 error page if the user is not authenticated.
- Return type:
HttpResponse
- property formatted_class_name: str
Returns a formatted string of the class name for logging purposes.