mirror of
https://github.com/geoffsee/open-gsio.git
synced 2025-09-08 22:56:46 +00:00
- Update default model to meta-llama/llama-4-scout-17b-16e-instruct
in ClientChatStore
- Revise deployment steps and docs for `GROQ_API_KEY` - Enable `workers_dev` in `wrangler.jsonc` - Adjust hero label to `open-gsio` in routes - Update `.gitignore` to include sensitive config files - Add `deploy:secrets` script in `package.json`
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -3,3 +3,6 @@
|
|||||||
**/.wrangler/
|
**/.wrangler/
|
||||||
/.idea/
|
/.idea/
|
||||||
public/sitemap.xml
|
public/sitemap.xml
|
||||||
|
.dev.vars
|
||||||
|
secrets.json
|
||||||
|
wrangler.dev.jsonc
|
17
README.md
17
README.md
@@ -1,8 +1,5 @@
|
|||||||
## open-geoff-seemueller-io
|
## open-geoff-seemueller-io
|
||||||
|
|
||||||
Fork of [geoff.seemueller.io](https://geoff.seemueller.io).
|
|
||||||
|
|
||||||
|
|
||||||
### Stack:
|
### Stack:
|
||||||
- vike
|
- vike
|
||||||
- react
|
- react
|
||||||
@@ -12,16 +9,18 @@ Fork of [geoff.seemueller.io](https://geoff.seemueller.io).
|
|||||||
## Quickstart
|
## Quickstart
|
||||||
|
|
||||||
1. `bun i`
|
1. `bun i`
|
||||||
2. `bun run build`
|
1. `bun run build`
|
||||||
3. Configure .dev.vars
|
1. [Add your own `GROQ_API_KEY` in .dev.vars](https://console.groq.com/keys)
|
||||||
4. Setup KV_STORAGE bindings for local development.
|
1. In isolated shells, run `bun run server:dev` and `bun run client:dev`
|
||||||
5. In isolated shells, run `bun run server:dev` and `bun run client:dev`
|
|
||||||
|
|
||||||
> Note: it should be possible to use pnpm in place of bun
|
> Note: it should be possible to use pnpm in place of bun
|
||||||
|
|
||||||
## Deploying
|
## Deploying
|
||||||
1. Find all instances of example.com in this repository and replace with your domain.
|
1. Setup the KV_STORAGE bindings in `wrangler.jsonc`
|
||||||
2. Run `wrangler deploy:all`
|
1. [Add another `GROQ_API_KEY` in secrets.json](https://console.groq.com/keys)
|
||||||
|
1. Run `bun run deploy && bun run deploy:secrets && bun run deploy`
|
||||||
|
|
||||||
|
> Note: Subsequent deployments should omit `bun run deploy:secrets`
|
||||||
|
|
||||||
History
|
History
|
||||||
---
|
---
|
||||||
|
@@ -9,6 +9,7 @@
|
|||||||
"client:build": "vite build",
|
"client:build": "vite build",
|
||||||
"server:build": "WRANGLER_LOG=info wrangler build",
|
"server:build": "WRANGLER_LOG=info wrangler build",
|
||||||
"deploy": "CI=true vite build && wrangler deploy --minify",
|
"deploy": "CI=true vite build && wrangler deploy --minify",
|
||||||
|
"deploy:secrets": "wrangler secret bulk secrets.json",
|
||||||
"deploy:email-service": "wrangler deploy --cwd workers/email",
|
"deploy:email-service": "wrangler deploy --cwd workers/email",
|
||||||
"deploy:analytics-service": "wrangler deploy --cwd workers/analytics",
|
"deploy:analytics-service": "wrangler deploy --cwd workers/analytics",
|
||||||
"deploy:session-proxy": "wrangler deploy --cwd workers/session-proxy",
|
"deploy:session-proxy": "wrangler deploy --cwd workers/session-proxy",
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
// Top level control interface for navigation
|
// Top level control interface for navigation
|
||||||
export default {
|
export default {
|
||||||
"/": { sidebarLabel: "Home", heroLabel: "g.s" },
|
"/": { sidebarLabel: "Home", heroLabel: "open-gsio" },
|
||||||
// "/about": { sidebarLabel: "About", heroLabel: "About Me" },
|
// "/about": { sidebarLabel: "About", heroLabel: "About Me" },
|
||||||
// "/resume": { sidebarLabel: "Resume", heroLabel: "resume" },
|
// "/resume": { sidebarLabel: "Resume", heroLabel: "resume" },
|
||||||
// "/demo": { sidebarLabel: "Demo", heroLabel: "Demos" },
|
// "/demo": { sidebarLabel: "Demo", heroLabel: "Demos" },
|
||||||
|
@@ -7,7 +7,7 @@ const ClientChatStore = types
|
|||||||
messages: types.optional(types.array(Message), []),
|
messages: types.optional(types.array(Message), []),
|
||||||
input: types.optional(types.string, ""),
|
input: types.optional(types.string, ""),
|
||||||
isLoading: types.optional(types.boolean, false),
|
isLoading: types.optional(types.boolean, false),
|
||||||
model: types.optional(types.string, "llama-3.3-70b-versatile"),
|
model: types.optional(types.string, "meta-llama/llama-4-scout-17b-16e-instruct"),
|
||||||
imageModel: types.optional(types.string, "black-forest-labs/flux-1.1-pro"),
|
imageModel: types.optional(types.string, "black-forest-labs/flux-1.1-pro"),
|
||||||
})
|
})
|
||||||
.actions((self) => ({
|
.actions((self) => ({
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
],
|
],
|
||||||
"main": "./workers/site/worker.ts",
|
"main": "./workers/site/worker.ts",
|
||||||
"preview_urls": false,
|
"preview_urls": false,
|
||||||
"workers_dev": false,
|
"workers_dev": true,
|
||||||
"kv_namespaces": [
|
"kv_namespaces": [
|
||||||
{
|
{
|
||||||
"binding": "KV_STORAGE",
|
"binding": "KV_STORAGE",
|
||||||
|
Reference in New Issue
Block a user