Skip to content

Commit

Permalink
Update sample-code/src/foundation-models-openai.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
marikaner committed Sep 13, 2024
1 parent fd08e07 commit 39c2927
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sample-code/src/foundation-models-openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ import {
* @returns The answer from GPT.
*/
export async function chatCompletion(): Promise<string> {
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()!;
Expand Down

0 comments on commit 39c2927

Please sign in to comment.