From 944a7b79e60fd0331dd68346c483841e5bd71465 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Wed, 23 Jul 2025 13:09:19 +0300 Subject: [PATCH] aider --- .aider.conf.yml | 22 +++++++++++++--------- .aider.model.metadata.json | 2 +- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.aider.conf.yml b/.aider.conf.yml index 8743deb..75cac91 100644 --- a/.aider.conf.yml +++ b/.aider.conf.yml @@ -1,21 +1,25 @@ # Aider configuration file # For more information, see: https://aider.chat/docs/config/aider_conf.html -# Reconfigured to use native OpenRouter support with a custom endpoint, -# as indicated by the 'litellm.BadRequestError'. -model: Qwen/Qwen3-Coder-480B-A35B-Instruct +# Configure for Hyperbolic API (OpenAI-compatible endpoint) +# hyperbolic +model: openai/Qwen/Qwen3-Coder-480B-A35B-Instruct openai-api-base: https://api.hyperbolic.xyz/v1 openai-api-key: "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkb2Jyb21pci5wb3BvdkB5YWhvby5jb20iLCJpYXQiOjE3NTMyMzE0MjZ9.fCbv2pUmDO9xxjVqfSKru4yz1vtrNvuGIXHibWZWInE" -# The following settings configure aider to use your custom OpenRouter endpoint -# and API key by setting the necessary environment variables for litellm. -# set-env: -# - OPENROUTER_API_BASE=https://api.hyperbolic.xyz/v1 -# - OPENROUTER_API_KEY=eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkb2Jyb21pci5wb3BvdkB5YWhvby5jb20iLCJpYXQiOjE3NTMyMzE0MjZ9.fCbv2pUmDO9xxjVqfSKru4yz1vtrNvuGIXHibWZWInE +# setx OPENAI_API_BASE https://api.hyperbolic.xyz/v1 +# setx OPENAI_API_KEY eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkb2Jyb21pci5wb3BvdkB5YWhvby5jb20iLCJpYXQiOjE3NTMyMzE0MjZ9.fCbv2pUmDO9xxjVqfSKru4yz1vtrNvuGIXHibWZWInE + +# Environment variables for litellm to recognize Hyperbolic provider +set-env: + #setx HYPERBOLIC_API_KEY eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkb2Jyb21pci5wb3BvdkB5YWhvby5jb20iLCJpYXQiOjE3NTMyMzE0MjZ9.fCbv2pUmDO9xxjVqfSKru4yz1vtrNvuGIXHibWZWInE + - HYPERBOLIC_API_KEY=eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkb2Jyb21pci5wb3BvdkB5YWhvby5jb20iLCJpYXQiOjE3NTMyMzE0MjZ9.fCbv2pUmDO9xxjVqfSKru4yz1vtrNvuGIXHibWZWInE + # - HYPERBOLIC_API_BASE=https://api.hyperbolic.xyz/v1 # Set encoding to UTF-8 (default) encoding: utf-8 -no-gitignore: true + +gitignore: false # The metadata file is still needed to inform aider about the # context window and costs for this custom model. model-metadata-file: .aider.model.metadata.json diff --git a/.aider.model.metadata.json b/.aider.model.metadata.json index 76ac9a3..9411f6d 100644 --- a/.aider.model.metadata.json +++ b/.aider.model.metadata.json @@ -1,5 +1,5 @@ { - "Qwen/Qwen3-Coder-480B-A35B-Instruct": { + "hyperbolic/Qwen/Qwen3-Coder-480B-A35B-Instruct": { "context_window": 262144, "input_cost_per_token": 0.000002, "output_cost_per_token": 0.000002