-
-
Notifications
You must be signed in to change notification settings - Fork 1
feat:Refactor LemurTaskParams schema to inline properties and update fields #112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -5644,13 +5644,50 @@ components: | |||||||||||||||||||||||||||||||
| x-label: Prompt | ||||||||||||||||||||||||||||||||
| description: Your text to prompt the model to produce a desired output, including any context you want to pass into the model. | ||||||||||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||||||||||
| required: [prompt] | ||||||||||||||||||||||||||||||||
| - $ref: "#/components/schemas/LemurBaseParams" | ||||||||||||||||||||||||||||||||
| transcript_ids: | ||||||||||||||||||||||||||||||||
| x-label: Transcript IDs | ||||||||||||||||||||||||||||||||
| description: | | ||||||||||||||||||||||||||||||||
| A list of completed transcripts with text. Up to a maximum of 100 hours of audio. | ||||||||||||||||||||||||||||||||
| Use either transcript_ids or input_text as input into LeMUR. | ||||||||||||||||||||||||||||||||
| type: array | ||||||||||||||||||||||||||||||||
| items: | ||||||||||||||||||||||||||||||||
| x-label: Transcript ID | ||||||||||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||||||||||
| format: uuid | ||||||||||||||||||||||||||||||||
| input_text: | ||||||||||||||||||||||||||||||||
| x-label: Input text | ||||||||||||||||||||||||||||||||
| description: | | ||||||||||||||||||||||||||||||||
| Custom formatted transcript data. Maximum size is the context limit of the selected model. | ||||||||||||||||||||||||||||||||
| Use either transcript_ids or input_text as input into LeMUR. | ||||||||||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||||||||||
| final_model: | ||||||||||||||||||||||||||||||||
| x-label: Final model | ||||||||||||||||||||||||||||||||
| description: | | ||||||||||||||||||||||||||||||||
| The model that is used for the final prompt after compression is performed. | ||||||||||||||||||||||||||||||||
| default: "default" | ||||||||||||||||||||||||||||||||
| oneOf: | ||||||||||||||||||||||||||||||||
| - $ref: "#/components/schemas/LemurModel" | ||||||||||||||||||||||||||||||||
| max_output_size: | ||||||||||||||||||||||||||||||||
|
Comment on lines
+5664
to
+5670
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent ❓ Verification inconclusive
Changing - oneOf:
+ anyOf:
- $ref: "#/components/schemas/LemurModel"
+ - type: stringAllow free-form strings for Revert the schema to use
Required change: - oneOf:
- - $ref: "#/components/schemas/LemurModel"
+ anyOf:
+ - $ref: "#/components/schemas/LemurModel"
+ - type: string📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||
| x-label: Maximum output size | ||||||||||||||||||||||||||||||||
| description: Max output size in tokens, up to 4000 | ||||||||||||||||||||||||||||||||
| type: integer | ||||||||||||||||||||||||||||||||
| default: 2000 | ||||||||||||||||||||||||||||||||
| temperature: | ||||||||||||||||||||||||||||||||
| x-label: Temperature | ||||||||||||||||||||||||||||||||
| description: | | ||||||||||||||||||||||||||||||||
| The temperature to use for the model. | ||||||||||||||||||||||||||||||||
| Higher values result in answers that are more creative, lower values are more conservative. | ||||||||||||||||||||||||||||||||
| Can be any value between 0.0 and 1.0 inclusive. | ||||||||||||||||||||||||||||||||
| type: number | ||||||||||||||||||||||||||||||||
| format: float | ||||||||||||||||||||||||||||||||
| default: 0 | ||||||||||||||||||||||||||||||||
| minimum: 0 | ||||||||||||||||||||||||||||||||
| maximum: 1 | ||||||||||||||||||||||||||||||||
| required: [prompt, final_model] | ||||||||||||||||||||||||||||||||
| example: | ||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||
| transcript_ids: ["64nygnr62k-405c-4ae8-8a6b-d90b40ff3cce"], | ||||||||||||||||||||||||||||||||
| prompt: "List all the locations affected by wildfires.", | ||||||||||||||||||||||||||||||||
| context: "This is an interview about wildfires.", | ||||||||||||||||||||||||||||||||
| final_model: "anthropic/claude-sonnet-4-20250514", | ||||||||||||||||||||||||||||||||
| temperature: 0, | ||||||||||||||||||||||||||||||||
| max_output_size: 3000, | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
contextfield silently droppedLemurBaseParamsexposes an optionalcontextattribute that many clients rely on. By inlining properties you removed it from LemurTaskParams, so POST /lemur/v3/generate/task will now reject valid payloads that worked before. Re-addcontexthere (or restore the base-schema reference).🤖 Prompt for AI Agents