symmetry-cli 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/install.sh +7 -33
  2. package/package.json +1 -1
package/install.sh CHANGED
@@ -1,4 +1,6 @@
1
- #!/bin/sh
1
+ #!/usr/bin/env bash
2
+ # Symmetry CLI Install Script for macOS/Linux
3
+
2
4
  set -e
3
5
 
4
6
  RED='\033[0;31m'
@@ -16,39 +18,13 @@ if ! command -v npm >/dev/null 2>&1; then
16
18
  fi
17
19
 
18
20
  print_color "$YELLOW" "Installing symmetry-cli globally..."
19
- if npm install -g symmetry-cli; then
21
+ if npm install -g .; then
20
22
  print_color "$GREEN" "symmetry-cli installed successfully!"
21
23
  else
22
24
  print_color "$RED" "Failed to install symmetry-cli. Please check your npm configuration and try again."
23
25
  exit 1
24
26
  fi
25
27
 
26
- print_color "$YELLOW" "Please select an API provider:"
27
- print_color "$NC" "1) LiteLLM"
28
- print_color "$NC" "2) LlamaCpp"
29
- print_color "$NC" "3) LMStudio"
30
- print_color "$NC" "4) Ollama"
31
- print_color "$NC" "5) Oobabooga"
32
- print_color "$NC" "6) OpenWebUI"
33
-
34
- api_provider=""
35
- while [ -z "$api_provider" ]; do
36
- printf "Enter the number of your choice: "
37
- read -r choice
38
- case $choice in
39
- 1) api_provider="litellm" ;;
40
- 2) api_provider="llamacpp" ;;
41
- 3) api_provider="lmstudio" ;;
42
- 4) api_provider="ollama" ;;
43
- 5) api_provider="oobabooga" ;;
44
- 6) api_provider="openwebui" ;;
45
- *) print_color "$RED" "Invalid option. Please try again." ;;
46
- esac
47
- done
48
-
49
- print_color "$YELLOW" "Please enter the model name you want to use:"
50
- read -r model_name
51
-
52
28
  config_dir="$HOME/.config/symmetry"
53
29
  provider_yaml="$config_dir/provider.yaml"
54
30
 
@@ -63,10 +39,10 @@ apiKey:
63
39
  apiPath: /v1/chat/completions
64
40
  apiPort: 11434
65
41
  apiProtocol: http
66
- apiProvider: $api_provider
42
+ apiProvider: ollama
67
43
  dataCollectionEnabled: true
68
44
  maxConnections: 10
69
- modelName: $model_name
45
+ modelName: llama3.1:latest
70
46
  name: $(whoami)
71
47
  path: $config_dir
72
48
  public: true
@@ -81,6 +57,4 @@ print_color "$GREEN" "Installation complete! You can now run 'symmetry-cli' to s
81
57
  print_color "$YELLOW" "Please edit $provider_yaml to customize your provider settings, especially:"
82
58
  print_color "$YELLOW" " - apiKey: Add your API key if required"
83
59
  print_color "$YELLOW" " - name: Currently set to your system username, change if needed"
84
- print_color "$YELLOW" " - public: Set to true by default, change to false if you don't want to be publicly accessible"
85
-
86
- print_color "$YELLOW" "Note: Symmetry is currently in alpha. Connections may be unstable or fail, especially when there are few active providers on the network."
60
+ print_color "$YELLOW" " - public: Set to true by default, change to false if you don't want to be publicly accessible"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "symmetry-cli",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "main": "dist/symmetry.js",
6
6
  "bin": "dist/symmetry.js",