Compare commits

..
5 Commits
Author SHA1 Message Date
Dax Raad ee0b704e27 sync 2025-06-17 20:34:38 -04:00
Daniel Merja 2a4950d68d Add new provider Llama (LLama API) and all models for the Llama API. 2025-06-17 20:25:46 -04:00
bhaktatejas922 5a68248302 morph fast apply models (#7) 2025-06-17 19:57:11 -04:00
Dax Raad 5fc59c2320 sync 2025-06-17 19:55:45 -04:00
Dax a270820e87 Rework (#12)
* sync

* sync

* sync
2025-06-17 19:52:16 -04:00
18 changed files with 2706 additions and 6 deletions

No files matched your search

+12
View File
@@ -111,6 +111,18 @@ See existing providers in the `providers/` directory for reference:
- `providers/openai/` - OpenAI GPT models
- `providers/google/` - Google Gemini models
### Working on frontend
Make sure you have [Bun](https://bun.sh/) installed.
```bash
$ bun install
$ cd packages/web
$ bun run dev
```
And it'll open the frontend at http://localhost:3000
### Questions?
Open an issue if you need help or have questions about contributing.
+2547
View File
File diff suppressed because it is too large. Load diff
+2 -2
View File
@@ -2,7 +2,7 @@ import { z } from "zod";
export const Model = z
.object({
id: z.string(),
id: z.string().toLowerCase(),
name: z.string().min(1, "Model name cannot be empty"),
attachment: z.boolean(),
reasoning: z.boolean(),
@@ -30,7 +30,7 @@ export type Model = z.infer<typeof Model>;
export const Provider = z
.object({
id: z.string(),
id: z.string().toLowerCase(),
env: z.array(z.string()).min(1, "Provider env cannot be empty"),
npm: z.string().min(1, "Provider npm module cannot be empty").optional(),
name: z.string().min(1, "Provider name cannot be empty"),
+4 -1
View File
@@ -1,7 +1,9 @@
#!/usr/bin/env bun
import { Rendered } from "../src/render";
import { Rendered, Providers } from "../src/render";
import fs from "fs/promises";
await fs.rm("./dist", { recursive: true, force: true });
await Bun.build({
entrypoints: ["./index.html"],
outdir: "dist",
@@ -15,3 +17,4 @@ for await (const file of new Bun.Glob("./public/*").scan()) {
let html = await Bun.file("./dist/index.html").text();
html = html.replace("<!--static-->", Rendered);
await Bun.write("./dist/index.html", html);
await Bun.write("./dist/api.json", JSON.stringify(Providers));
+2 -2
View File
@@ -6,7 +6,7 @@ import { Fragment } from "hono/jsx"
import { renderToString } from "hono/jsx/dom/server"
import path from "path"
const apiData = await generate(
export const Providers = await generate(
path.join(import.meta.dir, "..", "..", "..", "providers")
)
@@ -65,7 +65,7 @@ export const Rendered = renderToString(
</tr>
</thead>
<tbody>
{Object.entries(apiData)
{Object.entries(Providers)
.sort(([, providerA], [, providerB]) =>
providerA.name.localeCompare(providerB.name)
)
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"jsx": "react",
"jsx": "react-jsx",
"target": "ES2020",
"module": "ESNext",
"moduleResolution": "bundler",
@@ -0,0 +1,14 @@
name = "Cerebras Llama 4 Maverick 17B 128E Instruct"
attachment = true
reasoning = false
temperature = true
[cost]
input = 0.00
output = 0.00
inputCached = 0.0
outputCached = 0.00
[limit]
context = 128_000
output = 4_096
@@ -0,0 +1,14 @@
name = "Cerebras-Llama-4-Scout-17B-16E-Instruct"
attachment = true
reasoning = false
temperature = true
[cost]
input = 0.00
output = 0.00
inputCached = 0.0
outputCached = 0.00
[limit]
context = 128_000
output = 4_096
@@ -0,0 +1,14 @@
name = "Groq-Llama-4-Maverick-17B-128E-Instruct"
attachment = true
reasoning = false
temperature = true
[cost]
input = 0.00
output = 0.00
inputCached = 0.0
outputCached = 0.00
[limit]
context = 128_000
output = 4_096
@@ -0,0 +1,14 @@
name = "Llama-3.3-70B-Instruct"
attachment = true
reasoning = false
temperature = true
[cost]
input = 0.00
output = 0.00
inputCached = 0.0
outputCached = 0.00
[limit]
context = 128_000
output = 4_096
@@ -0,0 +1,14 @@
name = "Llama-3.3-8B-Instruct"
attachment = true
reasoning = false
temperature = true
[cost]
input = 0.00
output = 0.00
inputCached = 0.0
outputCached = 0.00
[limit]
context = 128_000
output = 4_096
@@ -0,0 +1,14 @@
name = "Llama-4-Maverick-17B-128E-Instruct-FP8"
attachment = true
reasoning = false
temperature = true
[cost]
input = 0.00
output = 0.00
inputCached = 0.0
outputCached = 0.00
[limit]
context = 128_000
output = 4_096
@@ -0,0 +1,14 @@
name = "Llama-4-Scout-17B-16E-Instruct-FP8"
attachment = true
reasoning = false
temperature = true
[cost]
input = 0.00
output = 0.00
inputCached = 0.0
outputCached = 0.00
[limit]
context = 128_000
output = 4_096
+2
View File
@@ -0,0 +1,2 @@
name = "Llama"
env = ["LLAMA_API_KEY"]
+12
View File
@@ -0,0 +1,12 @@
name = "Auto"
attachment = false
reasoning = false
temperature = false
[cost]
input = 0.85
output = 1.55
[limit]
context = 32_000
output = 32_000
+12
View File
@@ -0,0 +1,12 @@
name = "Morph v3 Fast"
attachment = false
reasoning = false
temperature = false
[cost]
input = 0.80
output = 1.20
[limit]
context = 16_000
output = 16_000
@@ -0,0 +1,12 @@
name = "Morph v3 Large"
attachment = false
reasoning = false
temperature = false
[cost]
input = 0.90
output = 1.90
[limit]
context = 32_000
output = 32_000
+2
View File
@@ -0,0 +1,2 @@
name = "Morph"
env = ["MORPH_API_KEY"]