Skip to content

Commit

Permalink
Update answer engine settings with perplexity option
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed Feb 23, 2024
1 parent b72e99c commit 7b4fecb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Usage:
xbot [flags...]

Flags:
-a, --answer-engine <string> Answer engine to use (openai of dexa) (default: "openai")
-a, --answer-engine <string> Answer engine to use (openai, dexa, or perplexity) (default: "openai")
--debug Enables debug logging
-t, --debug-tweet-ids <string> Specifies a tweet to process instead of responding to mentions with
the default behavior. Multiple tweets ids can be specified (-t id1
Expand Down
2 changes: 1 addition & 1 deletion src/parse-cli-args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7b4fecb

Please sign in to comment.