mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-07-25 12:01:04 +02:00
feat: show model pricing in configuration UI (#528)
* feat: show model pricing in configuration UI * fix: display effective pricing rounding policy
This commit is contained in:
parent
e7494e9c21
commit
c76076fb93
13 changed files with 445 additions and 9 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -3673,6 +3673,46 @@ export type MiniMaxTtsConfiguration = {
|
|||
group_id: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* ModelConfigurationMetricPrice
|
||||
*/
|
||||
export type ModelConfigurationMetricPrice = {
|
||||
/**
|
||||
* Metric Code
|
||||
*/
|
||||
metric_code: string;
|
||||
/**
|
||||
* Display Name
|
||||
*/
|
||||
display_name: string;
|
||||
/**
|
||||
* Unit
|
||||
*/
|
||||
unit: string;
|
||||
/**
|
||||
* Price Per Minute
|
||||
*/
|
||||
price_per_minute: number;
|
||||
/**
|
||||
* Currency
|
||||
*/
|
||||
currency: string;
|
||||
/**
|
||||
* Rounding Policy
|
||||
*/
|
||||
rounding_policy: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* ModelConfigurationPricingResponse
|
||||
*
|
||||
* MPS-owned effective prices relevant to model configuration choices.
|
||||
*/
|
||||
export type ModelConfigurationPricingResponse = {
|
||||
platform_usage?: ModelConfigurationMetricPrice | null;
|
||||
dograh_model?: ModelConfigurationMetricPrice | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* MoveWorkflowToFolderRequest
|
||||
*
|
||||
|
|
@ -10828,6 +10868,45 @@ export type SaveModelConfigurationV2ApiV1OrganizationsModelConfigurationsV2PutRe
|
|||
|
||||
export type SaveModelConfigurationV2ApiV1OrganizationsModelConfigurationsV2PutResponse = SaveModelConfigurationV2ApiV1OrganizationsModelConfigurationsV2PutResponses[keyof SaveModelConfigurationV2ApiV1OrganizationsModelConfigurationsV2PutResponses];
|
||||
|
||||
export type GetModelConfigurationPricingApiV1OrganizationsModelConfigurationsV2PricingGetData = {
|
||||
body?: never;
|
||||
headers?: {
|
||||
/**
|
||||
* Authorization
|
||||
*/
|
||||
authorization?: string | null;
|
||||
/**
|
||||
* X-Api-Key
|
||||
*/
|
||||
'X-API-Key'?: string | null;
|
||||
};
|
||||
path?: never;
|
||||
query?: never;
|
||||
url: '/api/v1/organizations/model-configurations/v2/pricing';
|
||||
};
|
||||
|
||||
export type GetModelConfigurationPricingApiV1OrganizationsModelConfigurationsV2PricingGetErrors = {
|
||||
/**
|
||||
* Not found
|
||||
*/
|
||||
404: unknown;
|
||||
/**
|
||||
* Validation Error
|
||||
*/
|
||||
422: HttpValidationError;
|
||||
};
|
||||
|
||||
export type GetModelConfigurationPricingApiV1OrganizationsModelConfigurationsV2PricingGetError = GetModelConfigurationPricingApiV1OrganizationsModelConfigurationsV2PricingGetErrors[keyof GetModelConfigurationPricingApiV1OrganizationsModelConfigurationsV2PricingGetErrors];
|
||||
|
||||
export type GetModelConfigurationPricingApiV1OrganizationsModelConfigurationsV2PricingGetResponses = {
|
||||
/**
|
||||
* Successful Response
|
||||
*/
|
||||
200: ModelConfigurationPricingResponse;
|
||||
};
|
||||
|
||||
export type GetModelConfigurationPricingApiV1OrganizationsModelConfigurationsV2PricingGetResponse = GetModelConfigurationPricingApiV1OrganizationsModelConfigurationsV2PricingGetResponses[keyof GetModelConfigurationPricingApiV1OrganizationsModelConfigurationsV2PricingGetResponses];
|
||||
|
||||
export type PreviewModelConfigurationV2MigrationApiV1OrganizationsModelConfigurationsV2MigrationPreviewGetData = {
|
||||
body?: never;
|
||||
headers?: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue