Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 28 additions & 8 deletions api/spec/src/v3/llmcost/prices.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,13 @@ model Price {
@visibility(Lifecycle.Read)
id: Shared.ULID;

/** Provider/vendor of the model (e.g., "openai", "anthropic"). */
/** Provider of the model. */
@visibility(Lifecycle.Read)
provider: string;

/** Canonical model identifier (e.g., "gpt-4", "claude-3-5-sonnet"). */
@visibility(Lifecycle.Read)
model_id: string;
provider: Provider;

/** Human-readable model name. */
/** The model. */
@visibility(Lifecycle.Read)
model_name: string;
`model`: Model;

/** Token pricing data. */
@visibility(Lifecycle.Read)
Expand Down Expand Up @@ -88,6 +84,30 @@ model Price {
updated_at?: Shared.DateTime;
}

/**
* LLM Provider
*/
@friendlyName("LLMCostProvider")
model Provider {
/** Identifier of the provider, e.g., "openai", "anthropic". */
id: string;

/** Name of the provider, e.g., "OpenAI", "Anthropic". */
name: string;
}

/**
* LLM Model
*/
@friendlyName("LLMCostModel")
model Model {
/** Identifier of the model, e.g., "gpt-4", "claude-3-5-sonnet". */
id: string;

/** Name of the model, e.g., "GPT-4", "Claude 3.5 Sonnet". */
name: string;
}

/**
* Input for creating a per-namespace price override.
* Unique per provider, model and currency.
Expand Down
Loading
Loading