Add Meta Model API provider with Muse Spark 1.1

This commit is contained in:
Rohit C Prasad
2026-07-25 01:21:07 -07:00
committed by Rohit P
parent f467c4ca73
commit fc6ce501dd
4 changed files with 21 additions and 0 deletions
+9
View File
@@ -71,6 +71,15 @@ MATRIX: dict[str, ModelEntry] = {
"gemini:gemini-2.5-pro": ModelEntry("Gemini 2.5 Pro · Google", _AGENTIC_VISION),
"gemini:gemini-2.5-flash": ModelEntry("Gemini 2.5 Flash · Google", _AGENTIC_VISION),
# -- direct OpenAI-compatible vendors ----------------------------------------
# Muse Spark (Meta Model API, public preview 2026-07-09): multimodal + tools via
# their OpenAI-compat surface. Vision yes; PDFs unverified over compat — falls
# back via pdf_support.py like the other compat vendors.
"meta:muse-spark-1.1": ModelEntry(
"Muse Spark 1.1 · Meta",
ModelCapabilities(
tools=True, vision=True, parallel_tool_calls=True, streaming=True
),
),
"zai:glm-5.2": ModelEntry("GLM-5.2 · Z AI"),
"deepseek:deepseek-v4-flash": ModelEntry("DeepSeek V4 Flash · DeepSeek"),
"deepseek:deepseek-v4-pro": ModelEntry("DeepSeek V4 Pro · DeepSeek"),
+8
View File
@@ -307,6 +307,14 @@ DESCRIPTORS: list[ProviderDescriptor] = [
recommended_model="mistral-large-latest",
env_key="MISTRAL_API_KEY",
),
_compat(
"meta",
"Meta (Muse Spark)",
base_url="https://api.meta.ai/v1",
recommended_model="muse-spark-1.1",
env_key="META_API_KEY",
endpoint_help="Prefilled with the Meta Model API endpoint (public preview, US-only as of 2026-07).",
),
# Resellers: many labs' models behind one key, using THEIR model namespaces (the curated
# ids + display labels live in providers/matrix.py). TODO: add Groq and OpenRouter here
# (+ their matrix rows) once the current provider surface is tested — deliberately
+3
View File
@@ -18,11 +18,13 @@ import mistral from "./logos/mistral.svg";
import qwen from "./logos/qwen.svg";
import minimax from "./logos/minimax.svg";
import xai from "./logos/xai.svg";
import meta from "./logos/meta.svg";
export const PROVIDER_LOGOS: Record<string, string> = {
anthropic,
openai,
gemini,
meta,
ollama,
fireworks,
together,
@@ -39,6 +41,7 @@ export const PROVIDER_ORDER = [
"anthropic",
"openai",
"gemini",
"meta",
"ollama",
"fireworks",
"together",
File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.9 KiB