Skip to content

Commit

Permalink
fix moderator sample
Browse files Browse the repository at this point in the history
  • Loading branch information
aacebo committed Oct 22, 2024
1 parent d3f140d commit 89943d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class AzureContentSafetyModerator<TState extends TurnState = TurnState> e
return new AzureOpenAIClient({
apiKey: options.apiKey,
endpoint: options.endpoint!,
apiVersion: options.apiVersion ?? '2023-04-30-preview',
apiVersion: options.apiVersion ?? '2023-10-01',
headerKey: 'Ocp-Apim-Subscription-Key'
});
}
Expand Down
6 changes: 3 additions & 3 deletions js/samples/03.ai-concepts/f.chatModeration/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ import { ConfigurationServiceClientCredentialFactory, TurnContext } from 'botbui

import { TeamsAdapter } from '@microsoft/teams-ai';

// Include the Teams AI custom component
import * as bot from './bot';

// Read botFilePath and botFileSecret from .env file.
const ENV_FILE = path.join(__dirname, '..', '.env');
config({ path: ENV_FILE });

// Include the Teams AI custom component
import * as bot from './bot';

// Create adapter.
// See https://aka.ms/about-bot-adapter to learn more about how bots work.
const adapter = new TeamsAdapter(
Expand Down

0 comments on commit 89943d3

Please sign in to comment.