Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions routellm/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
from types import SimpleNamespace
from typing import Any, Optional

#LiteLLM maps all supported openai params by provider + model (e.g. function calling is supported by OpenAI but not Groq).
#If a provider/model doesn't support a particular param, we can drop it.
import litellm
litellm.drop_params = True

import pandas as pd
from litellm import acompletion, completion
from tqdm import tqdm
Expand Down