diff --git a/.env.example b/.env.example index ee8bad2..195ca3f 100644 --- a/.env.example +++ b/.env.example @@ -24,9 +24,11 @@ TWITTER_API_PLAN= OPENAI_API_KEY= # Answer engine settings -#ANSWER_ENGINE='openai' | 'dexa' +#ANSWER_ENGINE='openai' | 'dexa' | 'perplexity' # If you're using dexa (api currently in private beta), then DEXA_API_KEY is required #DEXA_API_KEY= +# If you're using perplexity, then PERPLEXITY_API_KEY is required +#PERPLEXITY_API_KEY= # Optional database settings # If REDIS_URL isn't defined and REQUIRE_REDIS=true, the app will abort. diff --git a/readme.md b/readme.md index 7eee8da..966182f 100644 --- a/readme.md +++ b/readme.md @@ -38,7 +38,7 @@ Usage: xbot [flags...] Flags: - -a, --answer-engine Answer engine to use (openai of dexa) (default: "openai") + -a, --answer-engine Answer engine to use (openai, dexa, or perplexity) (default: "openai") --debug Enables debug logging -t, --debug-tweet-ids Specifies a tweet to process instead of responding to mentions with the default behavior. Multiple tweets ids can be specified (-t id1 diff --git a/src/parse-cli-args.ts b/src/parse-cli-args.ts index a2d3dbc..e4cb95f 100644 --- a/src/parse-cli-args.ts +++ b/src/parse-cli-args.ts @@ -72,7 +72,7 @@ export function parseCLIArgs( }, answerEngine: { type: String, - description: 'Answer engine to use (openai of dexa)', + description: 'Answer engine to use (openai, dexa, or perplexity)', alias: 'a', default: overrides?.answerEngine ?? config.defaultAnswerEngineType }