Skip to content

Instantly share code, notes, and snippets.

@LukeMauldin
LukeMauldin / litellm_to_aider.py
Created April 12, 2025 00:15
litellm_to_aider.py
#!/usr/bin/env python3.12
"""
LiteLLM to Aider Configuration Generator
This tool generates configuration files that allow Aider to work seamlessly with LiteLLM models.
It can generate both model settings (YAML) and model metadata (JSON) files.
The generated configurations correctly handle model names in the format "litellm/provider/model"
by using Aider's extra_params feature to pass the proper model name format to LiteLLM.
oh-my-zsh diagnostic dump
omz_diagdump_20151001-051810.txt
Thu Oct 1 05:18:10 CDT 2015
Darwin lam-macbook-pro.local 14.5.0 Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64
OSTYPE=darwin14.5.0
ZSH_VERSION=5.1.1
User: lmauldin
umask: 022
'use strict'
function CalcModel (principal, rate, time) {
this.principal = principal;
this.rate = rate;
this.time = time;
this.totalInterest = function() {
//Hardcode return
return principal * rate * time;