clew-code 0.2.7 → 0.2.8

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.
Files changed (57) hide show
  1. package/README.md +292 -299
  2. package/dist/main.js +2745 -2869
  3. package/docs/architecture.html +148 -145
  4. package/docs/architecture.th.html +79 -78
  5. package/docs/clew-code-architecture.html +1125 -0
  6. package/docs/commands.html +224 -223
  7. package/docs/commands.th.html +131 -130
  8. package/docs/configuration.html +147 -145
  9. package/docs/configuration.th.html +108 -106
  10. package/docs/css/styles.css +48 -42
  11. package/docs/daemon.html +129 -128
  12. package/docs/daemon.th.html +73 -72
  13. package/docs/features/bridge-mode.html +99 -98
  14. package/docs/features/bridge-mode.th.html +90 -89
  15. package/docs/features/evals.html +182 -181
  16. package/docs/features/evals.th.html +90 -89
  17. package/docs/features/peer.html +178 -177
  18. package/docs/features/searxng-search.html +151 -150
  19. package/docs/features/searxng-search.th.html +95 -94
  20. package/docs/features/sentry-setup.html +157 -156
  21. package/docs/features/sentry-setup.th.html +97 -96
  22. package/docs/index.html +299 -298
  23. package/docs/index.th.html +292 -290
  24. package/docs/installation.html +105 -103
  25. package/docs/installation.th.html +105 -103
  26. package/docs/internals/growthbook-ab-testing.html +113 -112
  27. package/docs/internals/growthbook-ab-testing.th.html +81 -80
  28. package/docs/internals/hidden-features.html +149 -147
  29. package/docs/internals/hidden-features.th.html +109 -107
  30. package/docs/js/main.js +83 -3
  31. package/docs/loop.html +181 -180
  32. package/docs/loop.th.html +227 -226
  33. package/docs/mcp.html +247 -246
  34. package/docs/mcp.th.html +207 -206
  35. package/docs/models.html +111 -110
  36. package/docs/models.th.html +61 -60
  37. package/docs/peer.html +236 -235
  38. package/docs/peer.th.html +280 -279
  39. package/docs/permission-model.html +102 -101
  40. package/docs/permission-model.th.html +67 -66
  41. package/docs/plugins.html +102 -101
  42. package/docs/plugins.th.html +79 -78
  43. package/docs/providers.html +126 -117
  44. package/docs/providers.th.html +80 -78
  45. package/docs/quick-start.html +93 -92
  46. package/docs/quick-start.th.html +40 -39
  47. package/docs/research-memory.html +82 -79
  48. package/docs/research-memory.th.html +72 -71
  49. package/docs/skills.html +117 -116
  50. package/docs/skills.th.html +90 -89
  51. package/docs/tools.html +170 -169
  52. package/docs/tools.th.html +84 -83
  53. package/docs/troubleshooting.html +106 -105
  54. package/docs/troubleshooting.th.html +85 -84
  55. package/package.json +164 -162
  56. package/docs/taste.html +0 -436
  57. package/docs/taste.th.html +0 -236
package/docs/models.html CHANGED
@@ -1,110 +1,111 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Models Clew</title>
7
- <meta name="description" content="Model selection guide for Clew how to pick, switch, and manage models across 27 providers.">
8
- <link rel="preconnect" href="https://fonts.googleapis.com">
9
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
- <link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">
11
- <link rel="stylesheet" href="css/styles.css">
12
- <link rel="icon" type="image/svg+xml" href="./assets/clew.svg">
13
- </head>
14
- <body>
15
- <header class="header"></header>
16
- <div class="app"><aside class="sidebar" id="sidebar"></aside><div class="sidebar-overlay" id="sidebarOverlay"></div>
17
- <div class="content-wrap"><main class="content">
18
- <div class="breadcrumbs"><a href="index.html">Home</a><span class="sep">/</span><span>Models</span></div>
19
- <h1>Models</h1>
20
- <p class="section-subtitle">Clew supports 100+ models across 27 providers. Pick the right model for each task from frontier reasoning to fast local inference.</p>
21
-
22
- <h2>Model Selection Guide</h2>
23
- <table>
24
- <tr><th>Workload</th><th>Recommended Models</th><th>Context</th><th>Notes</th></tr>
25
- <tr><td>Complex architecture &amp; large edits</td><td>claude-opus-4-7, claude-sonnet-4-6, gpt-5.5, deepseek-v4-pro</td><td>1M tokens</td><td>Best tool calling, strong reasoning, largest context</td></tr>
26
- <tr><td>Code review &amp; debugging</td><td>claude-sonnet-4-6, gpt-5.5, gemini-3.1-pro</td><td>1M-2M tokens</td><td>Good instruction following, reliable output</td></tr>
27
- <tr><td>Quick search &amp; summarization</td><td>claude-haiku-4-5, deepseek-v4-flash, mistral-small-4, groq/llama-3.3-70b</td><td>128K-200K</td><td>Fast, cost-effective, lower latency</td></tr>
28
- <tr><td>Offline / air-gapped</td><td>ollama/llama4:70b, ollama/llama3.3</td><td>131K tokens</td><td>Fully local, no network needed</td></tr>
29
- <tr><td>Cost-sensitive bulk</td><td>kilocode/kilo-auto/free, opencode-go/minimax-m2.7, groq/llama-3.1-8b</td><td>Varies</td><td>Free or minimal cost tiers available</td></tr>
30
- <tr><td>Research &amp; reasoning</td><td>claude-opus-4-7, deepseek-v4-pro, gemini-3.1-pro</td><td>1M-2M tokens</td><td>Deep reasoning, chain-of-thought</td></tr>
31
- <tr><td>Vision / multimodal</td><td>claude-sonnet-4-6, gpt-5.5, gemini-3.1-pro, deepseek-v4-flash</td><td>1M tokens</td><td>Image understanding, document analysis</td></tr>
32
- </table>
33
-
34
- <h2>Notable Models by Provider</h2>
35
- <table>
36
- <tr><th>Provider</th><th>Models Available</th></tr>
37
- <tr><td>Anthropic</td><td>claude-opus-4-7 (1M ctx), claude-sonnet-4-6 (1M ctx, recommended), claude-haiku-4-5 (200K ctx, fast)</td></tr>
38
- <tr><td>OpenAI</td><td>gpt-5.5 (1M ctx), gpt-5.4 (1M ctx), gpt-5.4-mini (fast)</td></tr>
39
- <tr><td>Google</td><td>gemini-3.1-pro (2M ctx), gemini-3.1-flash-lite (1M ctx, fast)</td></tr>
40
- <tr><td>DeepSeek</td><td>deepseek-v4-pro (1M ctx, MoE), deepseek-v4-flash (1M ctx, fast MoE)</td></tr>
41
- <tr><td>xAI</td><td>grok-4.3 (128K ctx)</td></tr>
42
- <tr><td>Mistral</td><td>mistral-medium-3.5, mistral-small-4, mistral-large-3</td></tr>
43
- <tr><td>Groq</td><td>llama-3.3-70b, llama-3.1-8b-instant (fast)</td></tr>
44
- <tr><td>Ollama</td><td>llama4:70b (local), llama3.3 (local), qwen3.6-plus (local)</td></tr>
45
- <tr><td>GitHub Copilot</td><td>claude-opus-4.7, claude-sonnet-4.6, claude-haiku-4.5, gpt-5.5</td></tr>
46
- <tr><td>OpenCode</td><td>claude-opus-4-7, claude-sonnet-4-6, gpt-5.5, gemini-3.1-pro, kimi-k2.6</td></tr>
47
- <tr><td>KiloCode</td><td>kilo-auto/free, kilo-auto/balanced, kilo-auto/frontier</td></tr>
48
- <tr><td>Cohere</td><td>command-a-plus (128K ctx)</td></tr>
49
- <tr><td>Perplexity</td><td>sonar-pro, sonar, sonar-reasoning-pro</td></tr>
50
- <tr><td>Together AI</td><td>deepseek-v4, Qwen3.6, Llama-4</td></tr>
51
- <tr><td>NVIDIA NIM</td><td>deepseek-v4-pro, glm-5.1, nemotron-3</td></tr>
52
- <tr><td>Cerebras</td><td>qwen-3-235b (extremely fast)</td></tr>
53
- <tr><td>Moonshot (Kimi)</td><td>kimi-k2.6 (128K ctx)</td></tr>
54
- <tr><td>Zhipu (GLM)</td><td>glm-4.7 (128K ctx)</td></tr>
55
- <tr><td>Hugging Face</td><td>llama-3.3-70b-instruct</td></tr>
56
- <tr><td>Poe</td><td>claude-3-7-sonnet</td></tr>
57
- </table>
58
-
59
- <h2>Model Switching</h2>
60
- <pre><code>/model # Interactive picker (fetches live models from provider API when supported)
61
- /model list # List all available models from the active provider API
62
- /model claude-sonnet-4-7 # Switch by full ID
63
- /model sonnet # Alias-based switching
64
- --model opus # CLI flag at startup</code></pre>
65
- <p>For providers with a /v1/models endpoint (OpenAI, DeepSeek, NVIDIA, etc.), the picker fetches live models from the API instead of the static providers.json list.
66
- The picker shows <strong>all models from every provider</strong> in named sections not just the active provider's models. Recent models appear at top with the active provider's default. Select any model from any provider directly.</p>
67
- <p>Model switching is instant the next conversation turn uses the new model. Previous context is preserved.</p>
68
-
69
- <h2>Model Aliases</h2>
70
- <p>Short aliases are resolved to full model IDs: <code>sonnet</code>, <code>opus</code>, <code>haiku</code>, <code>gpt5</code>, <code>flash</code>, etc.</p>
71
-
72
- <h2>CLI Flags for Models</h2>
73
- <table>
74
- <tr><th>Flag</th><th>Description</th></tr>
75
- <tr><td><code>--model &lt;name&gt;</code></td><td>Set model at startup (e.g., <code>--model sonnet</code> or <code>--model claude-opus-4-7</code>)</td></tr>
76
- <tr><td><code>--effort &lt;level&gt;</code></td><td>Set reasoning effort: <code>low</code>, <code>medium</code>, <code>high</code>, <code>max</code></td></tr>
77
- <tr><td><code>--max-turns &lt;N&gt;</code></td><td>Limit agentic turns in non-interactive mode</td></tr>
78
- <tr><td><code>--thinking &lt;mode&gt;</code></td><td>Thinking mode: <code>enabled</code>, <code>adaptive</code>, <code>disabled</code></td></tr>
79
- <tr><td><code>--fallback-model &lt;model&gt;</code></td><td>Fallback when primary model is overloaded (print mode only)</td></tr>
80
- <tr><td><code>--task-budget &lt;tokens&gt;</code></td><td>API-side task budget in tokens</td></tr>
81
- <tr><td><code>--max-budget-usd &lt;amount&gt;</code></td><td>Maximum spend on API calls (print mode only)</td></tr>
82
- </table>
83
-
84
- <h2>Model Capabilities</h2>
85
- <p>Each model declaration in <code>providers.json</code> includes:</p>
86
- <ul>
87
- <li>Model ID and display label</li>
88
- <li>Context window (<code>maxContext</code>) and max output tokens (<code>maxOutput</code>)</li>
89
- <li>Tool calling type (<code>native</code>, <code>none</code>)</li>
90
- <li>Vision support</li>
91
- <li>Streaming mode (<code>full</code>, <code>partial</code>)</li>
92
- <li>Reasoning support</li>
93
- <li>System prompt support</li>
94
- <li>Tags (for filtering): <code>fast</code>, <code>verified</code>, <code>recommended</code>, <code>latest</code>, <code>free</code>, <code>vision</code>, <code>tools</code>, <code>native</code>, <code>moe</code>, <code>local</code></li>
95
- </ul>
96
-
97
- <footer class="footer">
98
- <span>Clew v0.2.4 Open Source</span>
99
- <div class="footer-links">
100
- <a href="https://github.com/JonusNattapong/ClewCode">GitHub</a>
101
- <a href="https://github.com/JonusNattapong/ClewCode/issues">Issues</a>
102
- </div>
103
- </footer>
104
- </main>
105
- <nav class="toc-sidebar"></nav>
106
- </div>
107
- </div>
108
- <script src="js/main.js"></script>
109
- </body>
110
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Models — Clew</title>
7
+ <meta name="description" content="Model selection guide for Clew — how to pick, switch, and manage models across 27 providers.">
8
+ <link rel="preconnect" href="https://fonts.googleapis.com">
9
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
+ <link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">
11
+ <link rel="stylesheet" href="css/styles.css">
12
+ <link rel="icon" type="image/svg+xml" href="./assets/clew.svg">
13
+ </head>
14
+ <body>
15
+ <header class="header"></header>
16
+ <div class="app"><aside class="sidebar" id="sidebar"></aside><div class="sidebar-overlay" id="sidebarOverlay"></div>
17
+ <div class="content-wrap"><main class="content">
18
+ <div class="breadcrumbs"><a href="index.html">Home</a><span class="sep">/</span><span>Models</span></div>
19
+ <h1>Models</h1>
20
+ <p class="section-subtitle">Clew supports 100+ models across 27 providers. Pick the right model for each task — from frontier reasoning to fast local inference.</p>
21
+
22
+ <h2>Model Selection Guide</h2>
23
+ <table>
24
+ <tr><th>Workload</th><th>Recommended Models</th><th>Context</th><th>Notes</th></tr>
25
+ <tr><td>Complex architecture &amp; large edits</td><td>claude-opus-4-7, claude-sonnet-4-6, gpt-5.5, deepseek-v4-pro</td><td>1M tokens</td><td>Best tool calling, strong reasoning, largest context</td></tr>
26
+ <tr><td>Code review &amp; debugging</td><td>claude-sonnet-4-6, gpt-5.5, gemini-3.1-pro</td><td>1M-2M tokens</td><td>Good instruction following, reliable output</td></tr>
27
+ <tr><td>Quick search &amp; summarization</td><td>claude-haiku-4-5, deepseek-v4-flash, mistral-small-4, groq/llama-3.3-70b</td><td>128K-200K</td><td>Fast, cost-effective, lower latency</td></tr>
28
+ <tr><td>Offline / air-gapped</td><td>ollama/llama4:70b, ollama/llama3.3</td><td>131K tokens</td><td>Fully local, no network needed</td></tr>
29
+ <tr><td>Cost-sensitive bulk</td><td>kilocode/kilo-auto/free, opencode-go/minimax-m2.7, groq/llama-3.1-8b</td><td>Varies</td><td>Free or minimal cost tiers available</td></tr>
30
+ <tr><td>Research &amp; reasoning</td><td>claude-opus-4-7, deepseek-v4-pro, gemini-3.1-pro</td><td>1M-2M tokens</td><td>Deep reasoning, chain-of-thought</td></tr>
31
+ <tr><td>Vision / multimodal</td><td>claude-sonnet-4-6, gpt-5.5, gemini-3.1-pro, deepseek-v4-flash</td><td>1M tokens</td><td>Image understanding, document analysis</td></tr>
32
+ </table>
33
+
34
+ <h2>Notable Models by Provider</h2>
35
+ <table>
36
+ <tr><th>Provider</th><th>Models Available</th></tr>
37
+ <tr><td>Anthropic</td><td>claude-opus-4-7 (1M ctx), claude-sonnet-4-6 (1M ctx, recommended), claude-haiku-4-5 (200K ctx, fast)</td></tr>
38
+ <tr><td>OpenAI</td><td>gpt-5.5 (1M ctx), gpt-5.4 (1M ctx), gpt-5.4-mini (fast)</td></tr>
39
+ <tr><td>Google</td><td>gemini-3.1-pro (2M ctx), gemini-3.1-flash-lite (1M ctx, fast)</td></tr>
40
+ <tr><td>DeepSeek</td><td>deepseek-v4-pro (1M ctx, MoE), deepseek-v4-flash (1M ctx, fast MoE)</td></tr>
41
+ <tr><td>xAI</td><td>grok-4.3 (128K ctx)</td></tr>
42
+ <tr><td>Mistral</td><td>mistral-medium-3.5, mistral-small-4, mistral-large-3</td></tr>
43
+ <tr><td>Groq</td><td>llama-3.3-70b, llama-3.1-8b-instant (fast)</td></tr>
44
+ <tr><td>Ollama</td><td>llama4:70b (local), llama3.3 (local), qwen3.6-plus (local)</td></tr>
45
+ <tr><td>GitHub Copilot</td><td>claude-opus-4.7, claude-sonnet-4.6, claude-haiku-4.5, gpt-5.5</td></tr>
46
+ <tr><td>OpenCode</td><td>claude-opus-4-7, claude-sonnet-4-6, gpt-5.5, gemini-3.1-pro, kimi-k2.6</td></tr>
47
+ <tr><td>KiloCode</td><td>kilo-auto/free, kilo-auto/balanced, kilo-auto/frontier</td></tr>
48
+ <tr><td>Cohere</td><td>command-a-plus (128K ctx)</td></tr>
49
+ <tr><td>Perplexity</td><td>sonar-pro, sonar, sonar-reasoning-pro</td></tr>
50
+ <tr><td>Together AI</td><td>deepseek-v4, Qwen3.6, Llama-4</td></tr>
51
+ <tr><td>NVIDIA NIM</td><td>deepseek-v4-pro, glm-5.1, nemotron-3</td></tr>
52
+ <tr><td>Cerebras</td><td>qwen-3-235b (extremely fast)</td></tr>
53
+ <tr><td>Moonshot (Kimi)</td><td>kimi-k2.6 (128K ctx)</td></tr>
54
+ <tr><td>Zhipu (GLM)</td><td>glm-4.7 (128K ctx)</td></tr>
55
+ <tr><td>Hugging Face</td><td>llama-3.3-70b-instruct</td></tr>
56
+ <tr><td>Poe</td><td>claude-3-7-sonnet</td></tr>
57
+ </table>
58
+
59
+ <h2>Model Switching</h2>
60
+ <pre><code>/model # Interactive picker (fetches live models from provider API when supported)
61
+ /model list # List all available models from the active provider API
62
+ /model claude-sonnet-4-7 # Switch by full ID
63
+ /model sonnet # Alias-based switching
64
+ --model opus # CLI flag at startup</code></pre>
65
+ <p>For providers with a /v1/models endpoint (OpenAI, DeepSeek, NVIDIA, etc.), the picker fetches live models from the API instead of the static providers.json list.
66
+ The picker shows <strong>all models from every provider</strong> in named sections — not just the active provider's models. Recent models appear at top with the active provider's default. Select any model from any provider directly.</p>
67
+ <p>Model switching is instant — the next conversation turn uses the new model. Previous context is preserved.</p>
68
+
69
+ <h2>Model Aliases</h2>
70
+ <p>Short aliases are resolved to full model IDs: <code>sonnet</code>, <code>opus</code>, <code>haiku</code>, <code>gpt5</code>, <code>flash</code>, etc.</p>
71
+
72
+ <h2>CLI Flags for Models</h2>
73
+ <table>
74
+ <tr><th>Flag</th><th>Description</th></tr>
75
+ <tr><td><code>--model &lt;name&gt;</code></td><td>Set model at startup (e.g., <code>--model sonnet</code> or <code>--model claude-opus-4-7</code>)</td></tr>
76
+ <tr><td><code>--effort &lt;level&gt;</code></td><td>Set reasoning effort: <code>low</code>, <code>medium</code>, <code>high</code>, <code>max</code></td></tr>
77
+ <tr><td><code>--max-turns &lt;N&gt;</code></td><td>Limit agentic turns in non-interactive mode</td></tr>
78
+ <tr><td><code>--thinking &lt;mode&gt;</code></td><td>Thinking mode: <code>enabled</code>, <code>adaptive</code>, <code>disabled</code></td></tr>
79
+ <tr><td><code>--fallback-model &lt;model&gt;</code></td><td>Fallback when primary model is overloaded (print mode only)</td></tr>
80
+ <tr><td><code>--task-budget &lt;tokens&gt;</code></td><td>API-side task budget in tokens</td></tr>
81
+ <tr><td><code>--max-budget-usd &lt;amount&gt;</code></td><td>Maximum spend on API calls (print mode only)</td></tr>
82
+ </table>
83
+
84
+ <h2>Model Capabilities</h2>
85
+ <p>Each model declaration in <code>providers.json</code> includes:</p>
86
+ <ul>
87
+ <li>Model ID and display label</li>
88
+ <li>Context window (<code>maxContext</code>) and max output tokens (<code>maxOutput</code>)</li>
89
+ <li>Tool calling type (<code>native</code>, <code>none</code>)</li>
90
+ <li>Vision support</li>
91
+ <li>Streaming mode (<code>full</code>, <code>partial</code>)</li>
92
+ <li>Reasoning support</li>
93
+ <li>System prompt support</li>
94
+ <li>Tags (for filtering): <code>fast</code>, <code>verified</code>, <code>recommended</code>, <code>latest</code>, <code>free</code>, <code>vision</code>, <code>tools</code>, <code>native</code>, <code>moe</code>, <code>local</code></li>
95
+ </ul>
96
+
97
+ <footer class="footer">
98
+ <span>Clew v0.2.7 — Open Source</span>
99
+ <div class="footer-links">
100
+ <a href="https://github.com/ClewCode/ClewCode">GitHub</a>
101
+ <a href="https://github.com/ClewCode/ClewCode/issues">Issues</a>
102
+ </div>
103
+ </footer>
104
+ </main>
105
+ <nav class="toc-sidebar"></nav>
106
+ </div>
107
+ </div>
108
+ <script src="js/main.js"></script>
109
+ </body>
110
+ </html>
111
+
@@ -1,60 +1,61 @@
1
- <!DOCTYPE html>
2
- <html lang="th">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>โมเดล Clew</title>
7
- <meta name="description" content="คู่มือการเลือกโมเดลสำหรับ Clew วิธีเลือก, สลับ, และจัดการโมเดลจาก 27 ผู้ให้บริการ">
8
- <link rel="preconnect" href="https://fonts.googleapis.com">
9
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
- <link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Noto+Sans+Thai:wght@400;500;600;700&display=swap" rel="stylesheet">
11
- <link rel="stylesheet" href="css/styles.css">
12
- <link rel="icon" type="image/svg+xml" href="./assets/clew.svg">
13
- </head>
14
- <body>
15
- <header class="header"></header>
16
- <div class="app"><aside class="sidebar" id="sidebar"></aside><div class="sidebar-overlay" id="sidebarOverlay"></div>
17
- <div class="content-wrap"><main class="content">
18
- <div class="breadcrumbs"><a href="index.th.html">หน้าแรก</a><span class="sep">/</span><span>โมเดล</span></div>
19
- <h1>โมเดล</h1>
20
- <p class="section-subtitle">Clew รองรับ 100+ โมเดลจาก 27 ผู้ให้บริการ เลือกโมเดลที่เหมาะกับแต่ละงาน จากการใช้เหตุผลระดับสูงไปจนถึงการอนุมานในเครื่องที่รวดเร็ว</p>
21
-
22
- <h2>คู่มือการเลือกโมเดล</h2>
23
- <table>
24
- <tr><th>ลักษณะงาน</th><th>โมเดลแนะนำ</th><th>บริบท</th><th>หมายเหตุ</th></tr>
25
- <tr><td>สถาปัตยกรรมซับซ้อนและแก้ไขขนาดใหญ่</td><td>claude-opus-4-7, claude-sonnet-4-6, gpt-5.5, deepseek-v4-pro</td><td>1M โทเค็น</td><td>การเรียกใช้เครื่องมือดีที่สุด, การใช้เหตุผลแข็งแกร่ง, บริบทใหญ่ที่สุด</td></tr>
26
- <tr><td>รีวิวโค้ดและดีบัก</td><td>claude-sonnet-4-6, gpt-5.5, gemini-3.1-pro</td><td>1M-2M โทเค็น</td><td>ทำตามคำแนะนำดี, ผลลัพธ์เชื่อถือได้</td></tr>
27
- <tr><td>ค้นหาและสรุปผลอย่างรวดเร็ว</td><td>claude-haiku-4-5, deepseek-v4-flash, mistral-small-4, groq/llama-3.3-70b</td><td>128K-200K</td><td>เร็ว, คุ้มค่า, หน่วงเวลาต่ำ</td></tr>
28
- <tr><td>ออฟไลน์ / ไม่มีเครือข่าย</td><td>ollama/llama4:70b, ollama/llama3.3</td><td>131K โทเค็น</td><td>ในเครื่องทั้งหมด, ไม่ต้องใช้เครือข่าย</td></tr>
29
- </table>
30
-
31
- <h2>การสลับโมเดล</h2>
32
- <pre><code>/model # ตัวเลือกแบบโต้ตอบ
33
- /model list # แสดงโมเดลทั้งหมดจากผู้ให้บริการที่ใช้งาน
34
- /model claude-sonnet-4-7 # สลับด้วย ID เต็ม
35
- /model sonnet # สลับด้วย alias
36
- --model opus # CLI flag ตอนเริ่ม</code></pre>
37
-
38
- <h2>CLI Flags สำหรับโมเดล</h2>
39
- <table>
40
- <tr><th>Flag</th><th>คำอธิบาย</th></tr>
41
- <tr><td><code>--model &lt;name&gt;</code></td><td>ตั้งค่าโมเดลตอนเริ่ม</td></tr>
42
- <tr><td><code>--effort &lt;level&gt;</code></td><td>ตั้งค่าระดับการใช้เหตุผล: low, medium, high, max</td></tr>
43
- <tr><td><code>--thinking &lt;mode&gt;</code></td><td>โหมดการคิด: enabled, adaptive, disabled</td></tr>
44
- <tr><td><code>--fallback-model &lt;model&gt;</code></td><td>โมเดลสำรองเมื่อโมเดลหลักโอเวอร์โหลด</td></tr>
45
- </table>
46
-
47
- <footer class="footer">
48
- <span>Clew v0.2.4 โอเพนซอร์ส</span>
49
- <div class="footer-links">
50
- <a href="https://github.com/JonusNattapong/ClewCode">GitHub</a>
51
- <a href="https://github.com/JonusNattapong/ClewCode/issues">ปัญหา</a>
52
- </div>
53
- </footer>
54
- </main>
55
- <nav class="toc-sidebar"></nav>
56
- </div>
57
- </div>
58
- <script src="js/main.js"></script>
59
- </body>
60
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="th">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>โมเดล — Clew</title>
7
+ <meta name="description" content="คู่มือการเลือกโมเดลสำหรับ Clew — วิธีเลือก, สลับ, และจัดการโมเดลจาก 27 ผู้ให้บริการ">
8
+ <link rel="preconnect" href="https://fonts.googleapis.com">
9
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
+ <link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Noto+Sans+Thai:wght@400;500;600;700&display=swap" rel="stylesheet">
11
+ <link rel="stylesheet" href="css/styles.css">
12
+ <link rel="icon" type="image/svg+xml" href="./assets/clew.svg">
13
+ </head>
14
+ <body>
15
+ <header class="header"></header>
16
+ <div class="app"><aside class="sidebar" id="sidebar"></aside><div class="sidebar-overlay" id="sidebarOverlay"></div>
17
+ <div class="content-wrap"><main class="content">
18
+ <div class="breadcrumbs"><a href="index.th.html">หน้าแรก</a><span class="sep">/</span><span>โมเดล</span></div>
19
+ <h1>โมเดล</h1>
20
+ <p class="section-subtitle">Clew รองรับ 100+ โมเดลจาก 27 ผู้ให้บริการ เลือกโมเดลที่เหมาะกับแต่ละงาน — จากการใช้เหตุผลระดับสูงไปจนถึงการอนุมานในเครื่องที่รวดเร็ว</p>
21
+
22
+ <h2>คู่มือการเลือกโมเดล</h2>
23
+ <table>
24
+ <tr><th>ลักษณะงาน</th><th>โมเดลแนะนำ</th><th>บริบท</th><th>หมายเหตุ</th></tr>
25
+ <tr><td>สถาปัตยกรรมซับซ้อนและแก้ไขขนาดใหญ่</td><td>claude-opus-4-7, claude-sonnet-4-6, gpt-5.5, deepseek-v4-pro</td><td>1M โทเค็น</td><td>การเรียกใช้เครื่องมือดีที่สุด, การใช้เหตุผลแข็งแกร่ง, บริบทใหญ่ที่สุด</td></tr>
26
+ <tr><td>รีวิวโค้ดและดีบัก</td><td>claude-sonnet-4-6, gpt-5.5, gemini-3.1-pro</td><td>1M-2M โทเค็น</td><td>ทำตามคำแนะนำดี, ผลลัพธ์เชื่อถือได้</td></tr>
27
+ <tr><td>ค้นหาและสรุปผลอย่างรวดเร็ว</td><td>claude-haiku-4-5, deepseek-v4-flash, mistral-small-4, groq/llama-3.3-70b</td><td>128K-200K</td><td>เร็ว, คุ้มค่า, หน่วงเวลาต่ำ</td></tr>
28
+ <tr><td>ออฟไลน์ / ไม่มีเครือข่าย</td><td>ollama/llama4:70b, ollama/llama3.3</td><td>131K โทเค็น</td><td>ในเครื่องทั้งหมด, ไม่ต้องใช้เครือข่าย</td></tr>
29
+ </table>
30
+
31
+ <h2>การสลับโมเดล</h2>
32
+ <pre><code>/model # ตัวเลือกแบบโต้ตอบ
33
+ /model list # แสดงโมเดลทั้งหมดจากผู้ให้บริการที่ใช้งาน
34
+ /model claude-sonnet-4-7 # สลับด้วย ID เต็ม
35
+ /model sonnet # สลับด้วย alias
36
+ --model opus # CLI flag ตอนเริ่ม</code></pre>
37
+
38
+ <h2>CLI Flags สำหรับโมเดล</h2>
39
+ <table>
40
+ <tr><th>Flag</th><th>คำอธิบาย</th></tr>
41
+ <tr><td><code>--model &lt;name&gt;</code></td><td>ตั้งค่าโมเดลตอนเริ่ม</td></tr>
42
+ <tr><td><code>--effort &lt;level&gt;</code></td><td>ตั้งค่าระดับการใช้เหตุผล: low, medium, high, max</td></tr>
43
+ <tr><td><code>--thinking &lt;mode&gt;</code></td><td>โหมดการคิด: enabled, adaptive, disabled</td></tr>
44
+ <tr><td><code>--fallback-model &lt;model&gt;</code></td><td>โมเดลสำรองเมื่อโมเดลหลักโอเวอร์โหลด</td></tr>
45
+ </table>
46
+
47
+ <footer class="footer">
48
+ <span>Clew v0.2.7 — โอเพนซอร์ส</span>
49
+ <div class="footer-links">
50
+ <a href="https://github.com/ClewCode/ClewCode">GitHub</a>
51
+ <a href="https://github.com/ClewCode/ClewCode/issues">ปัญหา</a>
52
+ </div>
53
+ </footer>
54
+ </main>
55
+ <nav class="toc-sidebar"></nav>
56
+ </div>
57
+ </div>
58
+ <script src="js/main.js"></script>
59
+ </body>
60
+ </html>
61
+