Skip to content

Lab 3.1 ‐ Access OpenAI Proxy

Roy Cornelissen edited this page Nov 16, 2024 · 1 revision

Objective

The objective of this lab is to give you access to our OpenAI Proxy Playground. This is a chat UI for our privately hosted OpenAI model in Azure that you will use for the following labs. In later labs, you will also use GitHub Copilot, so you can compare options.

Steps

📋 Signup with your GitHub handle

Navigate to the following URL in your web browser: https://icy-smoke-02b1c2d03.5.azurestaticapps.net/event/6038-5e5d

A "VSLive Event Registration" page will appear that looks like this:

OpenAI proxy signup page

  • Click on the blue Login with GitHub in the top right corner
  • Read the event description including the Terms of use
  • Scroll to the bottom of the page and click Register
  • Next, scroll down to the Registration Details section for your API Key and Endpoint
  • Copy your API Key to the clipboard

OpenAI proxy registration details

In case you forget or loose your API Key, just revisit this page.

Visit the OpenAI Proxy Playground

Now you can visit the OpenAI Proxy Playground website and register with your API Key.

Browse to the following URL: https://icy-smoke-02b1c2d03.5.azurestaticapps.net/

A page will appear that looks like this:

OpenAI proxy playground

In the top right corner, paste the API Key from the previous step into the input box labeled Enter your API Key and press Authorize.

🔧 Setup

On the right side of the web page, set some defaults:

  • Model: choose gpt-4o
  • Max tokens: 4096 - this is the maximum value for this model
  • Temperature: 0.1 - this will make the model produce more deterministic responses, which is desirable in code generation situations

💬 Validation

Validate that you can interact with the model by entering a chat message.

You can now use the playground. In the following labs, you will set a system prompt and get the model ready for code generation.