mlboydaisuke commited on
Commit
46ce124
Β·
verified Β·
1 Parent(s): 55d5e0d

gen-cards: regenerate Use-it block for CoreAIKit 0.8.0

Browse files
Files changed (1) hide show
  1. README.md +6 -6
README.md CHANGED
@@ -33,7 +33,7 @@ Part of the community Core AI model zoo: **https://github.com/john-rocky/coreai-
33
  <!-- gen-cards:use-it begin id=glm-4.7-flash (managed by scripts/gen-cards β€” edit cards.json / QuickStart.swift, not this block) -->
34
  ## Use it
35
 
36
- **New to Core AI? [Start with CoreAIKit 0.7.3](https://github.com/john-rocky/coreai-kit#readme).** Follow its requirements and first-run steps for `qwen3-0.6b`, then open the same release's [ChatDemo](https://github.com/john-rocky/coreai-kit/tree/0.7.3/Examples/ChatDemo). The README records the tested OS/SDK and download size; model and device coverage is stated per example.
37
 
38
  ⚑ **One line** β€” run the kit's task op on this model
39
  (`import CoreAIOps`; no session, no model plumbing, downloads on first use):
@@ -42,13 +42,13 @@ Part of the community Core AI model zoo: **https://github.com/john-rocky/coreai-
42
  let tldr = try await CoreAI.summarize(text, options: .model("glm-4.7-flash"))
43
  ```
44
 
45
- Every op, one shape β€” [Cookbook](https://github.com/john-rocky/coreai-kit/blob/0.7.3/docs/COOKBOOK.md).
46
 
47
- ▢️ **Run it (source)** β€” the [ChatDemo runner](https://github.com/john-rocky/coreai-kit/tree/0.7.3/Examples/ChatDemo)
48
  (GUI + CLI, one app for every chat model in the catalog):
49
 
50
  ```bash
51
- git clone --branch 0.7.3 --depth 1 https://github.com/john-rocky/coreai-kit
52
  export DEVELOPER_DIR=/Applications/Xcode-27.0.0-RC.app/Contents/Developer
53
  open -a /Applications/Xcode-27.0.0-RC.app coreai-kit/Examples/ChatDemo/ChatDemo.xcodeproj
54
  # β†’ Run, then pick "GLM-4.7-Flash (MoE+MLA)" in the model picker
@@ -83,7 +83,7 @@ let reply = try await chat.respond(to: prompt)
83
 
84
  **When Apple's FoundationModels built-in model isn't enough, keep your session code and swap the model β€” one line.** CoreAIKit's [`KitLanguageModel`](https://github.com/john-rocky/coreai-kit#works-with-apples-foundationmodels-api) plugs supported chat bundles into the system `LanguageModelSession`. Tool calling depends on the model's dialect; guided generation also requires a compatible sequential engine. Check the linked support matrix before using either capability.
85
 
86
- The take-home is [`Examples/ChatDemo/Sources/QuickStart.swift`](https://github.com/john-rocky/coreai-kit/blob/0.7.3/Examples/ChatDemo/Sources/QuickStart.swift)
87
  β€” this exact code as one typed function, no UI; the CLI is an argument shell over it, and
88
  the GUI drives the same `ChatSession` across turns for its transcript.
89
  Multi-turn? Hold the `ChatSession` and call `respond(to:)` per turn β€” it keeps the
@@ -91,7 +91,7 @@ conversation history; `streamResponse(to:)` yields tokens as they decode.
91
 
92
  **Integration checklist**
93
 
94
- - SPM: `https://github.com/john-rocky/coreai-kit` (exact **0.7.3**) β†’ product **CoreAIKit**
95
  - Info.plist: none needed
96
  - Entitlements: none needed (macOS)
97
  - First run downloads the model β€” ~32,140 MB (Mac) β€” then it loads from the
 
33
  <!-- gen-cards:use-it begin id=glm-4.7-flash (managed by scripts/gen-cards β€” edit cards.json / QuickStart.swift, not this block) -->
34
  ## Use it
35
 
36
+ **New to Core AI? [Start with CoreAIKit 0.8.0](https://github.com/john-rocky/coreai-kit#readme).** Follow its requirements and first-run steps for `qwen3-0.6b`, then open the same release's [ChatDemo](https://github.com/john-rocky/coreai-kit/tree/0.8.0/Examples/ChatDemo). The README records the tested OS/SDK and download size; model and device coverage is stated per example.
37
 
38
  ⚑ **One line** β€” run the kit's task op on this model
39
  (`import CoreAIOps`; no session, no model plumbing, downloads on first use):
 
42
  let tldr = try await CoreAI.summarize(text, options: .model("glm-4.7-flash"))
43
  ```
44
 
45
+ Every op, one shape β€” [Cookbook](https://github.com/john-rocky/coreai-kit/blob/0.8.0/docs/COOKBOOK.md).
46
 
47
+ ▢️ **Run it (source)** β€” the [ChatDemo runner](https://github.com/john-rocky/coreai-kit/tree/0.8.0/Examples/ChatDemo)
48
  (GUI + CLI, one app for every chat model in the catalog):
49
 
50
  ```bash
51
+ git clone --branch 0.8.0 --depth 1 https://github.com/john-rocky/coreai-kit
52
  export DEVELOPER_DIR=/Applications/Xcode-27.0.0-RC.app/Contents/Developer
53
  open -a /Applications/Xcode-27.0.0-RC.app coreai-kit/Examples/ChatDemo/ChatDemo.xcodeproj
54
  # β†’ Run, then pick "GLM-4.7-Flash (MoE+MLA)" in the model picker
 
83
 
84
  **When Apple's FoundationModels built-in model isn't enough, keep your session code and swap the model β€” one line.** CoreAIKit's [`KitLanguageModel`](https://github.com/john-rocky/coreai-kit#works-with-apples-foundationmodels-api) plugs supported chat bundles into the system `LanguageModelSession`. Tool calling depends on the model's dialect; guided generation also requires a compatible sequential engine. Check the linked support matrix before using either capability.
85
 
86
+ The take-home is [`Examples/ChatDemo/Sources/QuickStart.swift`](https://github.com/john-rocky/coreai-kit/blob/0.8.0/Examples/ChatDemo/Sources/QuickStart.swift)
87
  β€” this exact code as one typed function, no UI; the CLI is an argument shell over it, and
88
  the GUI drives the same `ChatSession` across turns for its transcript.
89
  Multi-turn? Hold the `ChatSession` and call `respond(to:)` per turn β€” it keeps the
 
91
 
92
  **Integration checklist**
93
 
94
+ - SPM: `https://github.com/john-rocky/coreai-kit` (exact **0.8.0**) β†’ product **CoreAIKit**
95
  - Info.plist: none needed
96
  - Entitlements: none needed (macOS)
97
  - First run downloads the model β€” ~32,140 MB (Mac) β€” then it loads from the