Prompt Landing View
PromptSandboxView is a Django class-based view that serves as the base URL.
- class smarter.apps.prompt.views.detailviews.prompt_sandbox_view.PromptSandboxView(**kwargs)[source]
Bases:
SmarterAuthenticatedNeverCachedWebViewBase url for LLMClient.sandbox_url.
This a a noop view that is used for generating the base URL for the workbench prompt /prompt/ and /prompt/config/ endpoints, both of which are constructed inside of the React app and are not actual Django views.
- dispatch(request, *args, **kwargs)[source]
Return 404 for every request: the sandbox has no Django view of its own.
- Parameters:
request (
HttpRequest) – The request.args – Unused positional arguments.
kwargs – Unused keyword arguments.
- Returns:
An
HttpResponseNotFound.