Represent maps
// rather than
const map: {[ key: string ]: string} = {
foo: 'bar',
}| // /pages/index.tsx | |
| function ExamplePage() { | |
| const { data } = useBackend( | |
| "get-user-info", | |
| async () => { | |
| const data = await getProfileFromDB(); | |
| return data; // {name: string} | |
| }, | |
| { prefetch: true } |
| Name | Input | Output | |
|---|---|---|---|
| Gemini 2.0 Flash-Lite | $0.075 | $0.30 | |
| Mistral 3.1 Small | $0.10 | $0.30 | |
| Gemini 2.0 Flash | $0.10 | $0.40 | |
| ChatGPT 4.1-nano | $0.10 | $0.40 | |
| DeepSeek v3 (old) | $0.14 | $0.28 | |
| ChatGPT 4o-mini | $0.15 | $0.60 | |
| Gemini 2.5 Flash | $0.15 | $0.60 | |
| DeepSeek v3 | $0.27 | $1.10 | |
| Grok 3-mini | $0.30 | $0.50 |