create-theokit 0.1.0-alpha.6 → 0.1.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/templates/api-only/package.json.tmpl +1 -1
- package/templates/dashboard/package.json.tmpl +1 -1
- package/templates/default/package.json.tmpl +2 -2
- package/templates/default/server/routes/chat.ts +4 -2
- package/templates/postgres/package.json.tmpl +1 -1
- package/templates/saas/package.json.tmpl +2 -2
package/package.json
CHANGED
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"typecheck": "tsc --noEmit"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"theokit": "^0.1.0-alpha.
|
|
13
|
+
"theokit": "^0.1.0-alpha.8",
|
|
14
14
|
"@usetheo/sdk": "^1.1.0",
|
|
15
|
-
"@usetheo/ui": "^0.
|
|
15
|
+
"@usetheo/ui": "^0.12.0-next.0",
|
|
16
16
|
"lucide-react": "^0.469.0",
|
|
17
17
|
"react": "^19.0.0",
|
|
18
18
|
"react-dom": "^19.0.0",
|
|
@@ -37,10 +37,12 @@ export const POST = defineAgentEndpoint({
|
|
|
37
37
|
const orKey = process.env.OPENROUTER_API_KEY
|
|
38
38
|
const anKey = process.env.ANTHROPIC_API_KEY
|
|
39
39
|
const apiKey = orKey !== undefined && orKey.length > 0 ? orKey : anKey
|
|
40
|
+
// Model defaults — escolhidos pra ser cheap + funcionais empíricamente em 2026-05-28.
|
|
41
|
+
// Stranger pode trocar pra modelo de sua preferência.
|
|
40
42
|
const modelId =
|
|
41
43
|
orKey !== undefined && orKey.length > 0
|
|
42
|
-
? '
|
|
43
|
-
: 'claude-sonnet-4-5-20250929'
|
|
44
|
+
? 'openai/gpt-4o-mini' // OpenRouter route — cheap (~$0.15/1M tokens) + always available
|
|
45
|
+
: 'claude-sonnet-4-5-20250929' // direct Anthropic
|
|
44
46
|
if (apiKey === undefined || apiKey.length === 0) {
|
|
45
47
|
yield {
|
|
46
48
|
type: 'error',
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"db:studio": "drizzle-kit studio"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"theokit": "^0.1.0-alpha.
|
|
18
|
-
"@usetheo/ui": "^0.
|
|
17
|
+
"theokit": "^0.1.0-alpha.8",
|
|
18
|
+
"@usetheo/ui": "^0.12.0-next.0",
|
|
19
19
|
"react": "^19.0.0",
|
|
20
20
|
"react-dom": "^19.0.0",
|
|
21
21
|
"react-router": "^7.0.0",
|