mirror of https://github.com/kortix-ai/suna.git
undo providers location
This commit is contained in:
parent
a96f5c2b44
commit
e64af87611
|
@ -19,7 +19,6 @@ import litellm
|
||||||
from litellm.files.main import ModelResponse
|
from litellm.files.main import ModelResponse
|
||||||
from utils.logger import logger
|
from utils.logger import logger
|
||||||
from utils.config import config
|
from utils.config import config
|
||||||
from utils.constants import PROVIDERS
|
|
||||||
|
|
||||||
# litellm.set_verbose=True
|
# litellm.set_verbose=True
|
||||||
litellm.modify_params=True
|
litellm.modify_params=True
|
||||||
|
@ -39,7 +38,8 @@ class LLMRetryError(LLMError):
|
||||||
|
|
||||||
def setup_api_keys() -> None:
|
def setup_api_keys() -> None:
|
||||||
"""Set up API keys from environment variables."""
|
"""Set up API keys from environment variables."""
|
||||||
for provider in PROVIDERS:
|
providers = ['OPENAI', 'ANTHROPIC', 'GROQ', 'OPENROUTER', 'XAI']
|
||||||
|
for provider in providers:
|
||||||
key = getattr(config, f'{provider}_API_KEY')
|
key = getattr(config, f'{provider}_API_KEY')
|
||||||
if key:
|
if key:
|
||||||
logger.debug(f"API key set for provider: {provider}")
|
logger.debug(f"API key set for provider: {provider}")
|
||||||
|
|
|
@ -168,5 +168,3 @@ MODEL_ACCESS_TIERS = {
|
||||||
"tier_125_800": PAID_TIER_MODELS,
|
"tier_125_800": PAID_TIER_MODELS,
|
||||||
"tier_200_1000": PAID_TIER_MODELS,
|
"tier_200_1000": PAID_TIER_MODELS,
|
||||||
}
|
}
|
||||||
|
|
||||||
PROVIDERS = ['OPENAI', 'ANTHROPIC', 'GROQ', 'OPENROUTER', 'XAI']
|
|
Loading…
Reference in New Issue