Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion packages/core/script/generate-friendli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,13 @@ async function main() {
process.exit(1);
}

const apiModels = parsed.data.data;
const apiModels = parsed.data.data.filter((model) => {
if (!model.functionality.tool_call) {
console.log(`Skipping ${model.id}: tool_call not supported`);
return false;
}
return true;
});

// Get existing files (recursively)
const existingFiles = new Set<string>();
Expand Down
7 changes: 7 additions & 0 deletions packages/core/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ export const Model = z
api: z.string().optional(),
})
.optional(),
variants: z
.record(
z.object({
chat_template_kwargs: z.record(z.union([z.boolean(), z.string(), z.number()])).optional(),
})
)
.optional(),
})
.strict()
.refine(
Expand Down
8 changes: 7 additions & 1 deletion providers/friendli/models/LGAI-EXAONE/EXAONE-4.0.1-32B.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tool_call = true
structured_output = true
temperature = true
release_date = "2025-07-31"
last_updated = "2025-12-23"
last_updated = "2026-01-12"
open_weights = true

[cost]
Expand All @@ -20,3 +20,9 @@ output = 131_072
[modalities]
input = ["text"]
output = ["text"]

[variants.off]
chat_template_kwargs = { enable_thinking = false }

[variants.on]
chat_template_kwargs = { enable_thinking = true }
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tool_call = true
structured_output = true
temperature = true
release_date = "2025-12-31"
last_updated = "2026-01-08"
last_updated = "2026-01-12"
open_weights = true

[cost]
Expand All @@ -20,3 +20,9 @@ output = 262_144
[modalities]
input = ["text"]
output = ["text"]

[variants.off]
chat_template_kwargs = { enable_thinking = false }

[variants.on]
chat_template_kwargs = { enable_thinking = true }
8 changes: 7 additions & 1 deletion providers/friendli/models/Qwen/Qwen3-30B-A3B.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tool_call = true
structured_output = true
temperature = true
release_date = "2025-06-16"
last_updated = "2025-12-23"
last_updated = "2026-01-12"
open_weights = true

[limit]
Expand All @@ -16,3 +16,9 @@ output = 8_000
[modalities]
input = ["text"]
output = ["text"]

[variants.off]
chat_template_kwargs = { enable_thinking = false }

[variants.on]
chat_template_kwargs = { enable_thinking = true }
8 changes: 7 additions & 1 deletion providers/friendli/models/Qwen/Qwen3-32B.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tool_call = true
structured_output = true
temperature = true
release_date = "2025-06-16"
last_updated = "2025-12-23"
last_updated = "2026-01-12"
open_weights = true

[limit]
Expand All @@ -16,3 +16,9 @@ output = 8_000
[modalities]
input = ["text"]
output = ["text"]

[variants.off]
chat_template_kwargs = { enable_thinking = false }

[variants.on]
chat_template_kwargs = { enable_thinking = true }

This file was deleted.

This file was deleted.

8 changes: 7 additions & 1 deletion providers/friendli/models/zai-org/GLM-4.6.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tool_call = true
structured_output = true
temperature = true
release_date = "2025-10-31"
last_updated = "2025-12-23"
last_updated = "2026-01-12"
open_weights = true

[limit]
Expand All @@ -16,3 +16,9 @@ output = 131_072
[modalities]
input = ["text"]
output = ["text"]

[variants.off]
chat_template_kwargs = { enable_thinking = false }

[variants.on]
chat_template_kwargs = { enable_thinking = true }
2 changes: 1 addition & 1 deletion providers/friendli/provider.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "Friendli"
name = "FriendliAI"
env = ["FRIENDLI_TOKEN"]
npm = "@ai-sdk/openai-compatible"
api = "https://api.friendli.ai/serverless/v1"
Expand Down