Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

constants.ts 517 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
  1. // This is used for fetching and sharing evals.
  2. export const REMOTE_API_BASE_URL =
  3. // TODO(ian): Backwards compatibility, 2024-04-01
  4. process.env.NEXT_PUBLIC_PROMPTFOO_REMOTE_API_BASE_URL ||
  5. process.env.NEXT_PUBLIC_PROMPTFOO_BASE_URL ||
  6. process.env.PROMPTFOO_REMOTE_API_BASE_URL ||
  7. `https://api.promptfoo.dev`;
  8. // This is used for viewing evals.
  9. export const REMOTE_APP_BASE_URL =
  10. process.env.NEXT_PUBLIC_PROMPTFOO_BASE_URL ||
  11. process.env.PROMPTFOO_REMOTE_APP_BASE_URL ||
  12. `https://app.promptfoo.dev`;
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...