From ac59778c46dd73d329a48581cd4d50abf1d69350 Mon Sep 17 00:00:00 2001 From: Praveen Thirumurugan Date: Sat, 18 Oct 2025 01:32:00 +0530 Subject: [PATCH] docs: clarify cost configuration details in README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5d5f6b0..280036b 100644 --- a/README.md +++ b/README.md @@ -15,13 +15,13 @@ A lightweight, production-ready OpenAI-compatible proxy server that seamlessly f The cost is calculated based on the model and token usage with configurable pricing per model. -You'll need to add the cost configuration for your models in the `cost.ts` file. The default cost configuration in the project (with sample values from `z.ai` models) is: +You'll need to add the cost configuration (in cost per million tokens) for your models in the `cost.ts` file. The default cost configuration in the project (with sample values from `z.ai` models) is: ```typescript export const MODEL_COSTS: Record = { - "glm-4.5-air": { input: 0.2, cached: 0.03, output: 1.1 }, // cost per million prompt tokens (USD) - "glm-4.6": { input: 0.6, cached: 0.11, output: 2.2 }, // cost per million cached tokens (USD) - "default": { input: 0, cached: 0, output: 0 }, // default cost configuration + "glm-4.5-air": { input: 0.2, cached: 0.03, output: 1.1 }, + "glm-4.6": { input: 0.6, cached: 0.11, output: 2.2 }, + "default": { input: 0, cached: 0, output: 0 }, }; ```