refactor(provider): use LiteLLM as unified LLM requester backend

- Replace 23+ individual requester implementations with unified litellmchat.py
  - Add litellm_provider field to 27 YAML manifests for provider routing
  - Delete redundant requester subclasses
  - Add unit tests for LiteLLMRequester (29 tests)
  - Fix num_retries parameter name (was max_retries)
  - Fix exception handling order for subclass exceptions

  LiteLLM provides unified API for 100+ providers, eliminating need for
  provider-specific requesters.
This commit is contained in:
huanghuoguoguo
2026-04-24 22:32:33 +08:00
parent 101e04db6d
commit a62fce1cf7
58 changed files with 1161 additions and 3319 deletions
@@ -29,10 +29,7 @@ spec:
type: int
required: true
default: 120
litellm_provider: openai
support_type:
- llm
provider_category: maas
execution:
python:
path: ./modelscopechatcmpl.py
attr: ModelScopeChatCompletions