mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-07-25 12:01:04 +02:00
Implement cost calculator for Tuber (#471)
* Adding cost calculation in tuner for BYOK * fix * implement cost calculator for Tuner * Update api/services/integrations/tuner/completion.py Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> * feat: expose render_options in node spec * Update api/services/integrations/registry.py Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --------- Co-authored-by: mohamed salem <259547077+mohamedsalem-bot@users.noreply.github.com> Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> Co-authored-by: Abhishek Kumar <abhishek@a6k.me>
This commit is contained in:
parent
97803b8121
commit
65d46bc313
16 changed files with 479 additions and 188 deletions
File diff suppressed because one or more lines are too long
|
|
@ -3711,6 +3711,20 @@ export type NodeTypesResponse = {
|
|||
node_types: Array<NodeSpec>;
|
||||
};
|
||||
|
||||
/**
|
||||
* NumberInputOptions
|
||||
*
|
||||
* Renderer hints for numeric inputs.
|
||||
*/
|
||||
export type NumberInputOptions = {
|
||||
/**
|
||||
* Fractional
|
||||
*
|
||||
* Allow arbitrary fractional values via step='any'.
|
||||
*/
|
||||
fractional?: boolean;
|
||||
};
|
||||
|
||||
/**
|
||||
* OnboardingState
|
||||
*
|
||||
|
|
@ -4353,6 +4367,20 @@ export type ProcessDocumentRequestSchema = {
|
|||
retrieval_mode?: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* PropertyLayoutOptions
|
||||
*
|
||||
* Renderer layout hints for a property in the node editor.
|
||||
*/
|
||||
export type PropertyLayoutOptions = {
|
||||
/**
|
||||
* Column Span
|
||||
*
|
||||
* Number of columns to occupy in the editor's 12-column grid.
|
||||
*/
|
||||
column_span?: number | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* PropertyOption
|
||||
*
|
||||
|
|
@ -4373,6 +4401,18 @@ export type PropertyOption = {
|
|||
description?: string | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* PropertyRendererOptions
|
||||
*
|
||||
* Typed renderer metadata for node properties.
|
||||
*
|
||||
* Add new renderer behavior here instead of using free-form property metadata.
|
||||
*/
|
||||
export type PropertyRendererOptions = {
|
||||
layout?: PropertyLayoutOptions | null;
|
||||
number_input?: NumberInputOptions | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* PropertySpec
|
||||
*
|
||||
|
|
@ -4454,12 +4494,7 @@ export type PropertySpec = {
|
|||
* Editor
|
||||
*/
|
||||
editor?: string | null;
|
||||
/**
|
||||
* Extra
|
||||
*/
|
||||
extra?: {
|
||||
[key: string]: unknown;
|
||||
};
|
||||
renderer_options?: PropertyRendererOptions | null;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue