mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-07 15:32:21 +02:00
feat(provider): add lazy Featherless model discovery
This commit is contained in:
@@ -1099,6 +1099,8 @@ def _detect_provider(url: str) -> str:
|
||||
from src.copilot import is_copilot_base
|
||||
if is_copilot_base(url):
|
||||
return "copilot"
|
||||
if _host_match(url, "featherless.ai"):
|
||||
return "featherless"
|
||||
if _host_match(url, "cerebras.ai"):
|
||||
return "cerebras"
|
||||
if _host_match(url, "mistral.ai"):
|
||||
@@ -1330,6 +1332,7 @@ def _provider_label(url: str) -> str:
|
||||
if is_chatgpt_subscription_base(url): return "ChatGPT Subscription"
|
||||
from src.copilot import is_copilot_base
|
||||
if is_copilot_base(url): return "GitHub Copilot"
|
||||
if _host_match(url, "featherless.ai"): return "Featherless.ai"
|
||||
if _host_match(url, "cerebras.ai"):
|
||||
return "cerebras"
|
||||
if _host_match(url, "mistral.ai"): return "Mistral"
|
||||
|
||||
Reference in New Issue
Block a user