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

Add templates for JS Chat quickstart and viewcode #313

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

brandom-msft
Copy link
Member

Creating templates for JS Chat quickstart and AI Studio "view code" Chat playground in JS.
(In this PR, rather than trying to interlace the templates for all snippets I just created individual templates)

Added a sample test to validate the snippet generation and output.

Next:

  • add basic test for "view code" validation
  • expand tests for both

@brandom-msft brandom-msft requested a review from robch as a code owner June 12, 2024 23:28
"_Language": "JavaScript",

"ClassName": "OpenAIChatCompletionsClass",
"AZURE_OPENAI_AUTH_METHOD": "KEY",
Copy link

Choose a reason for hiding this comment

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

Are the values in this _.json file used anywhere? I'm not seeing them elsewhere.

Copy link

@amymsft amymsft left a comment

Choose a reason for hiding this comment

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

Asked a few follow up questions.


// Load the .env file if it exists
const dotenv = require("dotenv");
dotenv.config();
Copy link

Choose a reason for hiding this comment

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

Is this line what puts the env vars into the process.env object? Where did the env vars get defined?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants