mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-09 14:57:59 -05:00
feat: Clarifai Integration as LLM Provider (#11324)
This commit is contained in:
@@ -24,4 +24,5 @@ test("mapProvider", () => {
|
||||
expect(mapProvider("replicate")).toBe("Replicate");
|
||||
expect(mapProvider("voyage")).toBe("Voyage AI");
|
||||
expect(mapProvider("openrouter")).toBe("OpenRouter");
|
||||
expect(mapProvider("clarifai")).toBe("Clarifai");
|
||||
});
|
||||
|
||||
@@ -25,6 +25,7 @@ export const MAP_PROVIDER = {
|
||||
openrouter: "OpenRouter",
|
||||
openhands: "OpenHands",
|
||||
lemonade: "Lemonade",
|
||||
clarifai: "Clarifai",
|
||||
};
|
||||
|
||||
export const mapProvider = (provider: string) =>
|
||||
|
||||
@@ -5,6 +5,7 @@ export const VERIFIED_PROVIDERS = [
|
||||
"openai",
|
||||
"mistral",
|
||||
"lemonade",
|
||||
"clarifai",
|
||||
];
|
||||
export const VERIFIED_MODELS = [
|
||||
"o3-mini-2025-01-31",
|
||||
|
||||
@@ -71,4 +71,23 @@ def get_supported_llm_models(config: OpenHandsConfig) -> list[str]:
|
||||
]
|
||||
model_list = openhands_models + model_list
|
||||
|
||||
# Add Clarifai provider models (via OpenAI-compatible endpoint)
|
||||
clarifai_models = [
|
||||
# clarifai featured models
|
||||
'clarifai/openai.chat-completion.gpt-oss-120b',
|
||||
'clarifai/openai.chat-completion.gpt-oss-20b',
|
||||
'clarifai/openai.chat-completion.gpt-5',
|
||||
'clarifai/openai.chat-completion.gpt-5-mini',
|
||||
'clarifai/qwen.qwen3.qwen3-next-80B-A3B-Thinking',
|
||||
'clarifai/qwen.qwenLM.Qwen3-30B-A3B-Instruct-2507',
|
||||
'clarifai/qwen.qwenLM.Qwen3-30B-A3B-Thinking-2507',
|
||||
'clarifai/qwen.qwenLM.Qwen3-14B',
|
||||
'clarifai/qwen.qwenCoder.Qwen3-Coder-30B-A3B-Instruct',
|
||||
'clarifai/deepseek-ai.deepseek-chat.DeepSeek-R1-0528-Qwen3-8B',
|
||||
'clarifai/deepseek-ai.deepseek-chat.DeepSeek-V3_1',
|
||||
'clarifai/zai.completion.GLM_4_5',
|
||||
'clarifai/moonshotai.kimi.Kimi-K2-Instruct',
|
||||
]
|
||||
model_list = clarifai_models + model_list
|
||||
|
||||
return list(sorted(set(model_list)))
|
||||
|
||||
Reference in New Issue
Block a user