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:
Mohamed-Mamdouh 2026-07-02 08:21:14 +01:00 committed by GitHub
parent 97803b8121
commit 65d46bc313
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 479 additions and 188 deletions

File diff suppressed because one or more lines are too long

View file

@ -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;
};
/**