Compare commits

...

3 Commits

Author SHA1 Message Date
Aiden Cline b80e180a4a [replicate] Test resolved provider matrix 2026-06-10 23:13:14 -05:00
Aiden Cline 742d7f6ef8 [replicate] Correct DeepSeek tool support 2026-06-10 19:54:51 -05:00
Aiden Cline 9251e06b68 [replicate] Add verified model metadata 2026-06-10 16:05:54 -05:00
5 changed files with 99 additions and 0 deletions
+33
View File
@@ -215,6 +215,39 @@ input = ["text"]
expect(leaked).toEqual([]);
});
test("repository Replicate provider resolves its discovery inventory", async () => {
const root = path.join(import.meta.dirname, "..", "..", "..");
const providers = await generate(path.join(root, "providers"));
const models = providers.replicate?.models;
expect(Object.keys(models ?? {}).sort()).toEqual([
"deepseek-ai/deepseek-r1",
"meta/meta-llama-3-70b-instruct",
"meta/meta-llama-3-8b-instruct",
]);
expect(models?.["meta/meta-llama-3.1-405b-instruct"]).toBeUndefined();
expect(models?.["deepseek-ai/deepseek-r1"]).toMatchObject({
reasoning: true,
reasoning_options: [],
tool_call: false,
});
for (const modelID of [
"meta/meta-llama-3-8b-instruct",
"meta/meta-llama-3-70b-instruct",
]) {
const model = models?.[modelID];
expect(model).toMatchObject({ reasoning: false, tool_call: false });
expect(model).not.toHaveProperty("reasoning_options");
}
for (const model of Object.values(models ?? {})) {
expect(model).not.toHaveProperty("base_model");
expect(model).not.toHaveProperty("base_model_omit");
}
});
test("repository model metadata avoids provider-only namespaces", async () => {
const root = path.join(import.meta.dirname, "..", "..", "..");
const providerNamespaces = [
@@ -0,0 +1,14 @@
# https://replicate.com/deepseek-ai/deepseek-r1/llms.txt
base_model = "deepseek/deepseek-r1"
tool_call = false
reasoning_options = []
[cost]
input = 10
output = 10
[limit]
context = 128_000
output = 20_480
@@ -0,0 +1,24 @@
# https://replicate.com/meta/meta-llama-3-70b-instruct/llms.txt
name = "Llama 3 70B Instruct"
family = "llama"
release_date = "2024-04-18"
last_updated = "2024-04-18"
knowledge = "2023-12"
attachment = false
reasoning = false
temperature = true
tool_call = false
open_weights = true
[cost]
input = 0.65
output = 2.75
[limit]
context = 8_192
output = 8_192
[modalities]
input = ["text"]
output = ["text"]
@@ -0,0 +1,24 @@
# https://replicate.com/meta/meta-llama-3-8b-instruct/llms.txt
name = "Llama 3 8B Instruct"
family = "llama"
release_date = "2024-04-18"
last_updated = "2024-04-18"
knowledge = "2023-03"
attachment = false
reasoning = false
temperature = true
tool_call = false
open_weights = true
[cost]
input = 0.05
output = 0.25
[limit]
context = 8_192
output = 8_192
[modalities]
input = ["text"]
output = ["text"]
+4
View File
@@ -0,0 +1,4 @@
name = "Replicate"
env = ["REPLICATE_API_TOKEN"]
npm = "replicate"
doc = "https://replicate.com/docs"