From 41d76b477b24db5299a190f0e4bd3c1488fdf10f Mon Sep 17 00:00:00 2001 From: Rajan Paneru Date: Sun, 19 May 2024 17:54:47 +0930 Subject: [PATCH] Daily JSON update: 2024-05-19 --- .circleci/config.yml | 32 ++++++++++++++++++++++++++++ model_prices_and_context_window.json | 5 +++++ 2 files changed, 37 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 516f2b20d..635ecd595 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -311,6 +311,32 @@ jobs: "https://api.github.com/repos/BerriAI/litellm/actions/workflows/ghcr_deploy.yml/dispatches" \ -d "{\"ref\":\"main\", \"inputs\":{\"tag\":\"v${VERSION}\", \"commit_hash\":\"$CIRCLE_SHA1\"}}" +<<<<<<< HEAD +======= + auto_update_price_and_context_window: + docker: + - image: circleci/python:3.9 + steps: + - checkout + - run: + name: Install Dependencies + command: | + pip install aiohttp + - run: + name: Update Price and Context Window + command: | + python ci_cd/auto_update_price_and_context_window_file.py + - run: + name: Commit Changes + command: | + git config user.name "CircleCI" + git config user.email "circleci@example.com" + git add model_prices_and_context_window.json + git commit -m "[skip ci] Daily Price and Context window update: $(date +'%Y-%m-%d')" + git push -q origin main + schedule: + - cron: "0 0 * * *" +>>>>>>> dd2e31c59 (Daily JSON update: 2024-05-19) workflows: version: 2 build_and_test: @@ -341,3 +367,9 @@ workflows: branches: only: - main +<<<<<<< HEAD +======= + daily_update_price_and_context_window: + jobs: + - auto_update_price_and_context_window +>>>>>>> dd2e31c59 (Daily JSON update: 2024-05-19) diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json index bede36764..d7a793017 100644 --- a/model_prices_and_context_window.json +++ b/model_prices_and_context_window.json @@ -1696,8 +1696,13 @@ }, "openrouter/databricks/dbrx-instruct": { "max_tokens": 32768, +<<<<<<< HEAD "input_cost_per_token": 0.0000006, "output_cost_per_token": 0.0000006, +======= + "input_cost_per_token": 1.08e-06, + "output_cost_per_token": 1.08e-06, +>>>>>>> dd2e31c59 (Daily JSON update: 2024-05-19) "litellm_provider": "openrouter", "mode": "chat" },