Skip to content

Commit

Permalink
chore(instr-openai): use more common .example suffix, rather than .te…
Browse files Browse the repository at this point in the history
…mplate (#511)
  • Loading branch information
trentm authored Jan 6, 2025
1 parent 069c960 commit 96bf807
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/instrumentation-openai/TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ or a running Ollama. Which is used is determined by the environment variables.
1. OpenAI

```bash
cp openai.env.template openai.env
cp openai.env.example openai.env
vi openai.env # Add your OpenAI credentials.

set -a; source ./openai.env
Expand All @@ -42,7 +42,7 @@ or a running Ollama. Which is used is determined by the environment variables.
2. Azure OpenAI

```bash
cp azure.env.template azure.env
cp azure.env.example azure.env
vi azure.env # Add your credentials and resource & deployment details.
set -a; source ./azure.env
Expand Down Expand Up @@ -96,7 +96,7 @@ ones, those recordings might need to be regenerated. This runs against
api.openai.com, so you must have valid OpenAI auth set in your environment.
```bash
cp openai.env.template openai.env
cp openai.env.example openai.env
vi openai.env # Add your OpenAI credentials.
set -a; source openai.env
Expand Down
2 changes: 1 addition & 1 deletion packages/instrumentation-openai/test/fixtures.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ switch (testMode) {
}
if (!process.env.OPENAI_API_KEY) {
throw new Error(
'OPENAI_API_KEY is not set. To regenerate-recordings, it must be set. Set it in your environment, or use TEST_FIXTURES_ENV_FILE="./openai.env" (see "openai.env.template").'
'OPENAI_API_KEY is not set. To regenerate-recordings, it must be set. Set it in your environment, or use TEST_FIXTURES_ENV_FILE="./openai.env" (see "openai.env.example").'
);
}
usingNock = true;
Expand Down

0 comments on commit 96bf807

Please sign in to comment.