subconscious-cli 4.0.12 → 4.0.13
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 +2 -0
- package/bin/native/subc-tui-darwin-amd64 +0 -0
- package/bin/native/subc-tui-darwin-arm64 +0 -0
- package/bin/native/subc-tui-linux-amd64 +0 -0
- package/bin/native/subc-tui-linux-arm64 +0 -0
- package/bin/native/subc-tui-windows-amd64.exe +0 -0
- package/bin/native/subc-tui-windows-arm64.exe +0 -0
- package/bin/runbook/copilot/install.sh +10 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -122,6 +122,8 @@ saved to the selected profile.
|
|
|
122
122
|
Cursor still requires enabling its OpenAI API Key Override in Cursor Settings.
|
|
123
123
|
Copilot requires entering the custom endpoint key once through VS Code's
|
|
124
124
|
Manage Language Models UI. The install scripts print the relevant next steps.
|
|
125
|
+
Its Custom Endpoint provider uses the Messages API at `/v1/messages` by
|
|
126
|
+
default; rerun `subc copilot install` to migrate an older Chat Completions entry.
|
|
125
127
|
|
|
126
128
|
The runbook scripts require Bash. Cursor, Copilot, Pi, and Codex hook merge
|
|
127
129
|
also require `jq`; Cursor and Copilot also require `curl`.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
# "name": "Subconscious Gateway",
|
|
31
31
|
# "vendor": "customendpoint",
|
|
32
32
|
# "apiKey": "${input:chat.lm.secret.subconscious-gateway}",
|
|
33
|
-
# "apiType": "
|
|
33
|
+
# "apiType": "messages",
|
|
34
34
|
# "models": [
|
|
35
35
|
# {
|
|
36
36
|
# "id": "subconscious/glm-5.2",
|
|
37
37
|
# "name": "Subconscious GLM 5.2",
|
|
38
|
-
# "url": "https://your-gateway.example/v1/
|
|
38
|
+
# "url": "https://your-gateway.example/v1/messages",
|
|
39
39
|
# "toolCalling": true,
|
|
40
40
|
# "vision": false,
|
|
41
41
|
# "maxInputTokens": 5000000,
|
|
@@ -280,11 +280,13 @@ write_config() {
|
|
|
280
280
|
local user_dir="$1"
|
|
281
281
|
local models_json="${user_dir}/chatLanguageModels.json"
|
|
282
282
|
local base_url="${GATEWAY_URL%/}"
|
|
283
|
-
local
|
|
283
|
+
local messages_url
|
|
284
284
|
case "$base_url" in
|
|
285
|
-
*/v1/
|
|
286
|
-
*/v1)
|
|
287
|
-
|
|
285
|
+
*/v1/messages) messages_url="$base_url" ;;
|
|
286
|
+
*/v1/chat/completions) messages_url="${base_url%/chat/completions}/messages" ;;
|
|
287
|
+
*/v1/responses) messages_url="${base_url%/responses}/messages" ;;
|
|
288
|
+
*/v1) messages_url="${base_url}/messages" ;;
|
|
289
|
+
*) messages_url="${base_url}/v1/messages" ;;
|
|
288
290
|
esac
|
|
289
291
|
|
|
290
292
|
mkdir -p "$user_dir"
|
|
@@ -297,7 +299,7 @@ write_config() {
|
|
|
297
299
|
--argjson models "$provider_models" \
|
|
298
300
|
--arg modelId "$model_id" \
|
|
299
301
|
--arg modelName "Subconscious ${model_id}" \
|
|
300
|
-
--arg url "$
|
|
302
|
+
--arg url "$messages_url" \
|
|
301
303
|
--argjson maxIn "$MAX_INPUT_TOKENS" \
|
|
302
304
|
--argjson maxOut "$MAX_OUTPUT_TOKENS" \
|
|
303
305
|
'$models + [{
|
|
@@ -323,7 +325,7 @@ write_config() {
|
|
|
323
325
|
name: $name,
|
|
324
326
|
vendor: "customendpoint",
|
|
325
327
|
apiKey: $apiKeyRef,
|
|
326
|
-
apiType: "
|
|
328
|
+
apiType: "messages",
|
|
327
329
|
models: $models
|
|
328
330
|
}')
|
|
329
331
|
|