返回 JoyAI-Echo
models.py
1 """Model information helpers for the onboard wizard.
2
3 Model database / autocomplete is temporarily disabled while litellm is
4 being replaced. All public function signatures are preserved so callers
5 continue to work without changes.
6 """
7
8 from __future__ import annotations
9
10 from typing import Any
11
12
13 def get_all_models() -> list[str]:
14 return []
15
16
17 def find_model_info(model_name: str) -> dict[str, Any] | None:
18 return None
19
20
21 def get_model_context_limit(model: str, provider: str = "auto") -> int | None:
22 return None
23
24
25 def get_model_suggestions(partial: str, provider: str = "auto", limit: int = 20) -> list[str]:
26 return []
27
28
29 def format_token_count(tokens: int) -> str:
30 """Format token count for display (e.g., 200000 -> '200,000')."""
31 return f"{tokens:,}"
32
32 lines PYTHON