Skip to content

Commit

Permalink
Merge pull request #51 from dannyl1u/dev
Browse files Browse the repository at this point in the history
enh: similarity threshold from .env
  • Loading branch information
dannyl1u authored Nov 14, 2024
2 parents a244566 + 1b72cbe commit 80d9418
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ APP_ID=your_app_id_here
WEBHOOK_SECRET=your_webhook_secret_here
OLLAMA_MODEL=your_chosen_llm_model_here
NGROK_DOMAIN=your_ngrok_domain_here
SIMILARITY_THRESHOLD=0.5
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
PRIVATE_KEY = open("rsa.pem", "r").read()
WEBHOOK_SECRET = os.getenv("WEBHOOK_SECRET")
OLLAMA_MODEL = os.getenv("OLLAMA_MODEL")
SIMILARITY_THRESHOLD = 0.5
SIMILARITY_THRESHOLD = float(os.getenv("SIMILARITY_THRESHOLD"))
4 changes: 4 additions & 0 deletions run-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ declare -a subshell_pids=()
# Log file for debugging
LOG_FILE="tmp/run-dev.log"

# Ensure the tmp directory and log file exist
mkdir -p tmp
touch "$LOG_FILE"

# Function to log messages
log_message() {
local message="$1"
Expand Down

0 comments on commit 80d9418

Please sign in to comment.