ml-intern-api / agent /__init__.py
abidlabs's picture
abidlabs HF Staff
Deploy ML Intern API (backend + self-documenting frontend)
1635e66 verified
Raw
History Blame Contribute Delete
630 Bytes
"""
HF Agent - Main agent module
"""
import litellm
# Global LiteLLM behavior — set once at package import so both CLI and
# backend entries share the same config.
# drop_params: quietly drop unsupported params rather than raising
# suppress_debug_info: hide the noisy "Give Feedback" banner on errors
# modify_params: let LiteLLM patch provider-specific schema requirements
# for router-compatible request bodies when possible.
litellm.drop_params = True
litellm.suppress_debug_info = True
litellm.modify_params = True
from agent.core.agent_loop import submission_loop # noqa: E402
__all__ = ["submission_loop"]