Skip to content

Commit

Permalink
Revert OpenAI deps
Browse files Browse the repository at this point in the history
  • Loading branch information
SketchingDev committed Dec 2, 2023
1 parent 8b5f8b6 commit 309a1b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/genesys-web-messaging-tester-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ Start by setting up an API key for ChatGPT:
Write a scenario file containing all the scenarios you wish to run along with
the [ID and region of your Web Messenger Deployment](https://help.mypurecloud.com/articles/deploy-messenger/).

The scenarios are written as ChatGPT Prompts, these can take some fine-tuning to get right ([see examples here](https://genesys-messenger-tester.makingchatbots.com/writing-tests/ai/example-prompts.html)).
The scenarios are written as ChatGPT Prompts, these can take some fine-tuning to get
right ([see examples here](https://genesys-messenger-tester.makingchatbots.com/writing-tests/ai/example-prompts.html)).
The `terminatingPhrases` section defines the phrases you instruct ChatGPT to say to pass or fail a test.

> [examples/cli-ai-tests/example.yml](https://github.com/ovotech/genesys-web-messaging-tester/tree/main/examples/cli-ai-tests/example.yml)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { readFileSync } from 'fs';
import { Command } from 'commander';
import { AiTestCommandDependencies } from '../../../src/commands/aiTest/createAiTestCommand';
import { createCli } from '../../../src/createCli';
import { OpenAI } from 'openai';
import OpenAI from 'openai';
import { ChatCompletion } from 'openai/src/resources/chat/completions';

describe('Session Config', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
WebMessengerGuestSession,
WebMessengerSession,
} from '@ovotech/genesys-web-messaging-tester';
import { ClientOptions, OpenAI } from 'openai';
import OpenAI, { ClientOptions } from 'openai';
import { validateOpenAiEnvVariables } from './validateOpenAIEnvVariables';
import { Ui } from './ui';
import { validateSessionConfig } from './validateSessionConfig';
Expand Down

0 comments on commit 309a1b9

Please sign in to comment.