This commit is contained in:
Dobromir Popov
2025-07-23 13:09:19 +03:00
parent 8ad153aab5
commit 944a7b79e6
2 changed files with 14 additions and 10 deletions

View File

@ -1,21 +1,25 @@
# Aider configuration file # Aider configuration file
# For more information, see: https://aider.chat/docs/config/aider_conf.html # For more information, see: https://aider.chat/docs/config/aider_conf.html
# Reconfigured to use native OpenRouter support with a custom endpoint, # Configure for Hyperbolic API (OpenAI-compatible endpoint)
# as indicated by the 'litellm.BadRequestError'. # hyperbolic
model: Qwen/Qwen3-Coder-480B-A35B-Instruct model: openai/Qwen/Qwen3-Coder-480B-A35B-Instruct
openai-api-base: https://api.hyperbolic.xyz/v1 openai-api-base: https://api.hyperbolic.xyz/v1
openai-api-key: "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkb2Jyb21pci5wb3BvdkB5YWhvby5jb20iLCJpYXQiOjE3NTMyMzE0MjZ9.fCbv2pUmDO9xxjVqfSKru4yz1vtrNvuGIXHibWZWInE" openai-api-key: "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkb2Jyb21pci5wb3BvdkB5YWhvby5jb20iLCJpYXQiOjE3NTMyMzE0MjZ9.fCbv2pUmDO9xxjVqfSKru4yz1vtrNvuGIXHibWZWInE"
# The following settings configure aider to use your custom OpenRouter endpoint # setx OPENAI_API_BASE https://api.hyperbolic.xyz/v1
# and API key by setting the necessary environment variables for litellm. # setx OPENAI_API_KEY eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkb2Jyb21pci5wb3BvdkB5YWhvby5jb20iLCJpYXQiOjE3NTMyMzE0MjZ9.fCbv2pUmDO9xxjVqfSKru4yz1vtrNvuGIXHibWZWInE
# set-env:
# - OPENROUTER_API_BASE=https://api.hyperbolic.xyz/v1 # Environment variables for litellm to recognize Hyperbolic provider
# - OPENROUTER_API_KEY=eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkb2Jyb21pci5wb3BvdkB5YWhvby5jb20iLCJpYXQiOjE3NTMyMzE0MjZ9.fCbv2pUmDO9xxjVqfSKru4yz1vtrNvuGIXHibWZWInE 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) # Set encoding to UTF-8 (default)
encoding: utf-8 encoding: utf-8
no-gitignore: true
gitignore: false
# The metadata file is still needed to inform aider about the # The metadata file is still needed to inform aider about the
# context window and costs for this custom model. # context window and costs for this custom model.
model-metadata-file: .aider.model.metadata.json model-metadata-file: .aider.model.metadata.json

View File

@ -1,5 +1,5 @@
{ {
"Qwen/Qwen3-Coder-480B-A35B-Instruct": { "hyperbolic/Qwen/Qwen3-Coder-480B-A35B-Instruct": {
"context_window": 262144, "context_window": 262144,
"input_cost_per_token": 0.000002, "input_cost_per_token": 0.000002,
"output_cost_per_token": 0.000002 "output_cost_per_token": 0.000002