feat(api): update API spec from langfuse/langfuse fc04a50 #1467
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Important
Adds
deletemethod toPromptsClientandAsyncPromptsClientfor deleting prompt versions byprompt_name,label, orversion.deletemethod toPromptsClientandAsyncPromptsClientto delete prompt versions byprompt_name,label, orversion.labelnorversionis specified, all versions of the prompt are deleted.reference.mdto include usage and parameters for the newdeletemethod inclient.prompts.deletemethod for both sync and async clients.This description was created by
for 14faa79. You can customize this summary. It will automatically update as commits are pushed.
Disclaimer: Experimental PR review
Greptile Overview
Greptile Summary
Auto-generated API spec update adds a
deletemethod to the prompts client (both sync and async) and clarifies documentation for the projects API.client.prompts.delete()method with optionallabelandversionparameters for filtering deletionGET /api/public/projectsrequires project-scoped API keyConfidence Score: 5/5
Important Files Changed
File Analysis
Sequence Diagram
sequenceDiagram participant Client participant PromptsClient participant HTTPClient participant API Client->>PromptsClient: delete(prompt_name, label?, version?) PromptsClient->>HTTPClient: request(DELETE /api/public/v2/prompts/{name}) HTTPClient->>API: DELETE with params (label, version) alt Success (200-299) API-->>HTTPClient: 200 OK HTTPClient-->>PromptsClient: Success response PromptsClient-->>Client: None else Bad Request (400) API-->>HTTPClient: 400 Error HTTPClient-->>PromptsClient: Error response PromptsClient-->>Client: raise Error else Unauthorized (401) API-->>HTTPClient: 401 Error HTTPClient-->>PromptsClient: Error response PromptsClient-->>Client: raise UnauthorizedError else Access Denied (403) API-->>HTTPClient: 403 Error HTTPClient-->>PromptsClient: Error response PromptsClient-->>Client: raise AccessDeniedError else Not Found (404) API-->>HTTPClient: 404 Error HTTPClient-->>PromptsClient: Error response PromptsClient-->>Client: raise NotFoundError else Method Not Allowed (405) API-->>HTTPClient: 405 Error HTTPClient-->>PromptsClient: Error response PromptsClient-->>Client: raise MethodNotAllowedError end