diff --git a/sample-code/src/foundation-models-openai.ts b/sample-code/src/foundation-models-openai.ts index 83b70c4f..d18ae589 100644 --- a/sample-code/src/foundation-models-openai.ts +++ b/sample-code/src/foundation-models-openai.ts @@ -8,10 +8,7 @@ import { * @returns The answer from GPT. */ export async function chatCompletion(): Promise { - const response = await new OpenAiChatClient({ - deploymentId: 'test', - modelName: 'gpt-35-turbo' - }).run({ + const response = await new OpenAiChatClient('gpt-35-turbo').run({ messages: [{ role: 'user', content: 'What is the capital of France?' }] }); return response.getContent()!;