feat(api): update API spec from langfuse/langfuse e1f390d #1439
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
Update API spec to include new score filtering parameters and extend media content types.
get()andasync get()inscore_v_2/client.pynow supportdataset_run_idandtrace_idparameters for filtering scores.IMAGE_AVIF,IMAGE_HEIC,AUDIO_OPUS,AUDIO_WEBM,VIDEO_OGG,VIDEO_MPEG,VIDEO_QUICKTIME,VIDEO_X_MSVIDEO,VIDEO_X_MATROSKA,TEXT_MARKDOWN,TEXT_X_PYTHON,APPLICATION_JAVASCRIPT,TEXT_X_TYPESCRIPT,APPLICATION_X_YAML,APPLICATION_OPENXML_SPREADSHEET,APPLICATION_OPENXML_WORD,APPLICATION_OPENXML_PRESENTATION,APPLICATION_RTF,APPLICATION_X_NDJSON,APPLICATION_PARQUET,APPLICATION_GZIP,APPLICATION_X_TAR,APPLICATION_X_7_Z_COMPRESSEDtoMediaContentTypeinmedia_content_type.py.README.md.This description was created by
for ddf0481. You can customize this summary. It will automatically update as commits are pushed.
Disclaimer: Experimental PR review
Greptile Overview
Greptile Summary
This PR updates the auto-generated API client code from the upstream Langfuse API specification. The changes add two new score filtering capabilities and expand media type support.
dataset_run_idandtrace_idparameters to both sync and async score retrieval methods inclient.py:44-45andclient.py:272-273, enabling more granular score filteringMediaContentTypeenum with 24 new MIME types including modern image formats (AVIF, HEIC), audio codecs (Opus), video formats, code files (Python, TypeScript, YAML), and document formats (DOCX, XLSX, PPTX, Parquet)Confidence Score: 5/5
Important Files Changed
File Analysis
dataset_run_idandtrace_idfilter parameters to score retrieval methodsSequence Diagram
sequenceDiagram participant Client participant ScoreV2Client participant API as Langfuse API Note over Client,API: New filtering capabilities added Client->>ScoreV2Client: get(dataset_run_id="run123", trace_id="trace456") ScoreV2Client->>ScoreV2Client: Add datasetRunId and traceId to params ScoreV2Client->>API: GET /api/public/v2/scores?datasetRunId=run123&traceId=trace456 API-->>ScoreV2Client: GetScoresResponse ScoreV2Client-->>Client: Return filtered scores Note over Client,API: Media type validation expanded Client->>Client: Upload media with content-type Note over Client: Now supports 24 additional MIME types:<br/>image/avif, image/heic, audio/opus,<br/>video/ogg, text/markdown, application/parquet, etc.