Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(instr-openai): use more common .example suffix, rather than .template #511

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading