Skip to content

Commit f813611

Browse files
committed
remove ts from js
1 parent b492648 commit f813611

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/ai-services/openai/includes/assistants-javascript.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,10 @@ import "dotenv/config";
208208
// }
209209

210210
// 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;
211+
const azureOpenAIKey = process.env.AZURE_OPENAI_API_KEY;
212+
const azureOpenAIEndpoint = process.env.AZURE_OPENAI_ENDPOINT;
213213
const credential = new AzureKeyCredential(azureOpenAIKey);
214-
const getClient = (): AssistantsClient => {
214+
const getClient = () => {
215215
const assistantsClient = new AssistantsClient(azureOpenAIEndpoint, credential);
216216
return assistantsClient;
217217
}

0 commit comments

Comments
 (0)