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

[OpenAI] Prepare beta.5 release #26941

Merged
merged 2 commits into from
Aug 25, 2023
Merged

[OpenAI] Prepare beta.5 release #26941

merged 2 commits into from
Aug 25, 2023

Conversation

deyaaeldeen
Copy link
Member

No description provided.

```

Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform):

```bash
npx cross-env ENDPOINT="<endpoint>" AZURE_API_KEY="<azure api key>" node chatCompletions.js
npx cross-env ENDPOINT="<endpoint>" AZURE_API_KEY="<azure api key>" AZURE_SEARCH_ENDPOINT="<azure search endpoint>" AZURE_SEARCH_KEY="<azure search key>" AZURE_SEARCH_INDEX="<azure search index>" node bringYourOwnData.js
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we specifically say here that it requires the cross-env npm module?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

npx is used and should install it automatically for you, no?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessarily, for example on Mac it doesn't:

npx cross-env FOO="bar" dist/index.js
sh: cross-env: command not found

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting, @witemple-msft could this be a gap in our sample READMEs?

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

console.error("The sample encountered an error:", err);
});

module.exports = { main };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the usage of exporting main here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@witemple-msft Is this needed in order to run the sample in some pipeline?

Copy link
Member

@mpodwysocki mpodwysocki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two minor comments otherwise looks fine

@deyaaeldeen deyaaeldeen enabled auto-merge (squash) August 25, 2023 18:07
@deyaaeldeen deyaaeldeen merged commit 703cd1f into main Aug 25, 2023
@deyaaeldeen deyaaeldeen deleted the openai/1.beta.5 branch August 25, 2023 18:12
dgetu pushed a commit that referenced this pull request Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants