* add redis container * Updated Guides and Goals (#134) * Update README.md * Update commands-guide.md * Update events-guide.md * Update commands-guide.md * Added: redis client * Fixed: redis mock in commands.test.ts * Updated: npm package patches * Fixed: redis ip name in keys.ts * update Node LTS version, workflow env vars * Updated: node package engine requirements * Updated: documentation * fix: upgrade dotenv from 16.4.5 to 16.4.7 (#152) Snyk has created this PR to upgrade dotenv from 16.4.5 to 16.4.7. See this package in npm: dotenv See this project in Snyk: https://app.snyk.io/org/jt2m0l3y/project/d8b070a3-e4a3-457a-977b-7eb6a4a48346?utm_source=github&utm_medium=referral&page=upgrade-pr Co-authored-by: snyk-bot <snyk-bot@snyk.io> * Update: docs patches, connection ordering --------- Co-authored-by: snyk-bot <snyk-bot@snyk.io>
12 lines
554 B
TypeScript
12 lines
554 B
TypeScript
import { getEnvVar } from './utils/index.js'
|
|
|
|
export const Keys = {
|
|
clientToken: getEnvVar('CLIENT_TOKEN'),
|
|
ipAddress: getEnvVar('OLLAMA_IP', '127.0.0.1'), // default ollama ip if none
|
|
portAddress: getEnvVar('OLLAMA_PORT', '11434'), // default ollama port if none
|
|
defaultModel: getEnvVar('MODEL', 'llama3.2'),
|
|
redisHost: getEnvVar('REDIS_IP', '172.18.0.4'), // default redis host if none
|
|
redisPort: parseInt(getEnvVar('REDIS_PORT', '6379')) // default redis port if none
|
|
} as const // readonly keys
|
|
|
|
export default Keys |