Skip to content
Merged
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ talks to the Smartloop API (`api.smartloop.ai`) from the browser.
| Overview | `/dashboard` | Getting started, token usage and estimated savings |
| Models | `/models` | The model catalogue and published benchmark scores |
| Cloud models | `/cloud-models/usage`, `/cloud-models/history` | Credit usage and call history for cloud models |
| GPU boxes | `/gpushed` | [gpushed](https://gpushed.smartloop.ai) balance, top-ups, the current box, daily spend and GPU prices (from `api.smartloop.ai/v1/gpushed`) |
| GPU boxes | `/gpushed` | [gpushed](https://gpushed.smartloop.ai) balance, top-ups, the current box, daily spend and GPU prices (from `gpushed-api.smartloop.ai`) |
| Settings | `/settings/tokens`, `/settings/websearch`, `/settings/billing` | Access tokens, web search, plan, credits and invoices |
| Plans and payment | `/plans`, `/pricing`, `/upgrade`, `/payment/*` | Upgrade and Stripe Checkout return pages |
| Account | `/profile` | Name, email and password |
Expand Down
3 changes: 2 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const nextConfig = {
},
env: {
allow_hash_login: process.env.ALLOW_HASH_LOGIN === 'true'? "1": "0",
base_url: process.env.SLP_BASE_URL
base_url: process.env.SLP_BASE_URL,
gpushed_url: process.env.GPUSHED_URL
}
};

Expand Down
5 changes: 3 additions & 2 deletions src/app/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ const BASE_URL = process.env.base_url || "https://api.smartloop.ai";

export const API_ENDPOINT = `${BASE_URL}/v1`;
export const WS_ENDPOINT = `${BASE_URL}/ws`;
// gpushed (GPU boxes) is served under the same host, by its own Worker.
export const GPUSHED_ENDPOINT = `${BASE_URL}/v1/gpushed`;
// gpushed (GPU boxes) has its own host: api.smartloop.ai is a Supabase custom
// domain, so a Worker route on it never runs. Same smartloop session token.
export const GPUSHED_ENDPOINT = process.env.gpushed_url || "https://gpushed-api.smartloop.ai";

// Plan names, prices and feature copy live on the marketing site, not in this
// app. Keeping a second copy here meant hand-syncing every price change (and
Expand Down
2 changes: 1 addition & 1 deletion src/app/gpushed/gpushed-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* gpushed (https://gpushed.smartloop.ai) gives each smartloop account a
* personal NVIDIA GPU machine, created and managed from a Mac with the
* `gpushed` CLI and paid from a prepaid balance. Its API lives at
* api.smartloop.ai/v1/gpushed and accepts the same session token as the rest
* gpushed-api.smartloop.ai and accepts the same session token as the rest
* of the app, so this page reads it directly:
*
* GET /me balance and the current box
Expand Down
Loading