clarity-ai 6.5.3 → 6.5.4
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/CHANGELOG.md +10 -0
- package/package.json +2 -2
- package/src/config/models.js +2 -2
- package/src/providers/index.js +4 -4
- package/src/providers/streaming.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
+
## 6.5.4 (2026-06-06)
|
|
6
|
+
|
|
7
|
+
### Docker SDK + Local GGUF Inference
|
|
8
|
+
- All 6 Spaces converted to `sdk: docker` with FastAPI + `llama-cpp-python`
|
|
9
|
+
- Models run locally on each Space (no HF Inference API dependency)
|
|
10
|
+
- Sync FastAPI handlers for compatibility; lazy model load on first request
|
|
11
|
+
- Pre-built CPU wheels for `llama-cpp-python` via `--extra-index-url`
|
|
12
|
+
- Spaces made public — no auth header needed
|
|
13
|
+
- Default model: Qwen2.5-1.5B-Instruct-Q4_K_M (Flash & Heavy)
|
|
14
|
+
|
|
5
15
|
## 6.5.2 (2026-06-06)
|
|
6
16
|
|
|
7
17
|
### CoT + MoE Space Architecture
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clarity-ai",
|
|
3
|
-
"version": "6.5.
|
|
4
|
-
"description": "CLARITY — terminal AI agent with
|
|
3
|
+
"version": "6.5.4",
|
|
4
|
+
"description": "CLARITY — terminal AI agent with local GGUF inference on HF Spaces",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"clarity": "bin/clarity.js"
|
package/src/config/models.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const ALL_MODELS = [
|
|
2
|
-
{ id: 'huggingface/Universal-618/Clarity-flash-weights', provider: 'huggingface', label: 'Clarity Flash
|
|
3
|
-
{ id: 'huggingface/Universal-618/Clarity-heavy-weights', provider: 'huggingface', label: 'Clarity Heavy
|
|
2
|
+
{ id: 'huggingface/Universal-618/Clarity-flash-weights', provider: 'huggingface', label: 'Clarity Flash (Qwen 2.5 1.5B)', badge: 'Free' },
|
|
3
|
+
{ id: 'huggingface/Universal-618/Clarity-heavy-weights', provider: 'huggingface', label: 'Clarity Heavy (Qwen 2.5 1.5B)', badge: 'Free' },
|
|
4
4
|
{ id: 'groq/llama-3.3-70b-versatile', provider: 'groq', label: 'Llama 3.3 70B Versatile', badge: null },
|
|
5
5
|
{ id: 'groq/llama-3.1-8b-instant', provider: 'groq', label: 'Llama 3.1 8B Instant', badge: 'Fast' },
|
|
6
6
|
{ id: 'groq/llama-4-scout-17b-16e-instruct', provider: 'groq', label: 'Llama 4 Scout 17B', badge: null },
|
package/src/providers/index.js
CHANGED
|
@@ -3,12 +3,12 @@ import { streamResponse } from './streaming.js';
|
|
|
3
3
|
|
|
4
4
|
const MODEL_ROUTES = {
|
|
5
5
|
'Universal-618/Clarity-flash-weights': [
|
|
6
|
-
process.env.
|
|
7
|
-
'https://universal-618-clarity-
|
|
8
|
-
'https://universal-618-clarity-
|
|
6
|
+
process.env.CLARITY_INFERENCE_URL || 'https://universal-618-clarity-main.hf.space/v1/chat/completions',
|
|
7
|
+
'https://universal-618-clarity-2.hf.space/v1/chat/completions',
|
|
8
|
+
'https://universal-618-clarity-3.hf.space/v1/chat/completions',
|
|
9
9
|
],
|
|
10
10
|
'Universal-618/Clarity-heavy-weights': [
|
|
11
|
-
process.env.
|
|
11
|
+
process.env.CLARITY_INFERENCE_URL || 'https://universal-618-clarity-4.hf.space/v1/chat/completions',
|
|
12
12
|
'https://universal-618-clarity-5.hf.space/v1/chat/completions',
|
|
13
13
|
'https://universal-618-clarity-6.hf.space/v1/chat/completions',
|
|
14
14
|
],
|
|
@@ -26,7 +26,7 @@ export async function* streamResponse(endpoint, body, apiKey, extraHeaders = {},
|
|
|
26
26
|
method: 'POST',
|
|
27
27
|
headers: {
|
|
28
28
|
'Content-Type': 'application/json',
|
|
29
|
-
'Authorization': 'Bearer ' + apiKey,
|
|
29
|
+
...(apiKey && apiKey !== 'none' ? { 'Authorization': 'Bearer ' + apiKey } : {}),
|
|
30
30
|
...extraHeaders,
|
|
31
31
|
},
|
|
32
32
|
body: JSON.stringify({ ...body, stream: true }),
|