(modelId: string)
| 810 | } |
| 811 | |
| 812 | export function getModelPricing(modelId: string): any { |
| 813 | const embeddingPricing = getEmbeddingModelPricing(modelId) |
| 814 | if (embeddingPricing) { |
| 815 | return embeddingPricing |
| 816 | } |
| 817 | |
| 818 | return getModelPricingFromDefinitions(modelId) |
| 819 | } |
| 820 | |
| 821 | /** |
| 822 | * Format cost as a credit string for display. |
no test coverage detected