Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ee0b704e27 | ||
|
|
2a4950d68d | ||
|
|
5a68248302 | ||
|
|
5fc59c2320 | ||
|
|
a270820e87 |
No files matched your search
@@ -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.
|
||||
|
||||
Generated
+2547
File diff suppressed because it is too large.
Load diff
@@ -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"),
|
||||
|
||||
@@ -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));
|
||||
@@ -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,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
|
||||
@@ -0,0 +1,2 @@
|
||||
name = "Llama"
|
||||
env = ["LLAMA_API_KEY"]
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -0,0 +1,2 @@
|
||||
name = "Morph"
|
||||
env = ["MORPH_API_KEY"]
|
||||
Reference in new issue
Block a user