We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b492648 commit f813611Copy full SHA for f813611
articles/ai-services/openai/includes/assistants-javascript.md
@@ -208,10 +208,10 @@ import "dotenv/config";
208
// }
209
210
// Not recommended - for local demo purposes only
211
-const azureOpenAIKey = process.env.AZURE_OPENAI_API_KEY as string;
212
-const azureOpenAIEndpoint = process.env.AZURE_OPENAI_ENDPOINT as string;
+const azureOpenAIKey = process.env.AZURE_OPENAI_API_KEY;
+const azureOpenAIEndpoint = process.env.AZURE_OPENAI_ENDPOINT;
213
const credential = new AzureKeyCredential(azureOpenAIKey);
214
-const getClient = (): AssistantsClient => {
+const getClient = () => {
215
const assistantsClient = new AssistantsClient(azureOpenAIEndpoint, credential);
216
return assistantsClient;
217
}
0 commit comments