coursecast 0.2.0 → 0.2.1
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/README.md +1 -1
- package/bin/coursecast.mjs +1 -1
- package/package.json +1 -1
- package/src/engines/gemini.mjs +2 -2
package/README.md
CHANGED
|
@@ -43,7 +43,7 @@ The engine is what writes the content. Pick with `--engine`:
|
|
|
43
43
|
coursecast "learn rust" --engine gemini
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
Gemini extras: `GEMINI_MODEL` overrides the model (default `gemini-
|
|
46
|
+
Gemini extras: `GEMINI_MODEL` overrides the model (default `gemini-3.5-flash`);
|
|
47
47
|
`COURSECAST_RESEARCH=0` skips the web-search research pass (faster, cheaper, less current).
|
|
48
48
|
|
|
49
49
|
## All flags
|
package/bin/coursecast.mjs
CHANGED
|
@@ -25,7 +25,7 @@ USAGE
|
|
|
25
25
|
|
|
26
26
|
OPTIONS
|
|
27
27
|
--engine <id> generation engine: claude-code (default), gemini, codex, stub
|
|
28
|
-
--model <id> model hint passed to the engine (e.g. gemini-
|
|
28
|
+
--model <id> model hint passed to the engine (e.g. gemini-3.5-flash)
|
|
29
29
|
--storage <id> progress storage: local (default, no setup), cloud (sync across devices)
|
|
30
30
|
--provider <id> deploy target: vercel (default), netlify
|
|
31
31
|
--lessons <n> target number of lessons (default ~12)
|
package/package.json
CHANGED
package/src/engines/gemini.mjs
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
// schema rather than inventing them from stale training data.
|
|
5
5
|
//
|
|
6
6
|
// Requires: GEMINI_API_KEY (free tier works — https://aistudio.google.com/apikey)
|
|
7
|
-
// Optional: GEMINI_MODEL (default "gemini-
|
|
7
|
+
// Optional: GEMINI_MODEL (default "gemini-3.5-flash"), COURSECAST_RESEARCH=0 to skip search.
|
|
8
8
|
|
|
9
9
|
import { buildSyllabusPrompt, buildLessonPrompt, finalizeLesson, extractJsonObject } from './shared-prompts.mjs'
|
|
10
10
|
|
|
11
11
|
export const name = 'gemini'
|
|
12
12
|
|
|
13
13
|
const API = 'https://generativelanguage.googleapis.com/v1beta/models'
|
|
14
|
-
const DEFAULT_MODEL = process.env.GEMINI_MODEL || 'gemini-
|
|
14
|
+
const DEFAULT_MODEL = process.env.GEMINI_MODEL || 'gemini-3.5-flash'
|
|
15
15
|
const RESEARCH_ON = process.env.COURSECAST_RESEARCH !== '0'
|
|
16
16
|
|
|
17
17
|
function apiKey() {
|