Skip to content

Commit

Permalink
refactor: revert back require for openai lib
Browse files Browse the repository at this point in the history
  • Loading branch information
kurpav authored and aklarfeld committed Nov 14, 2023
1 parent da8a4a7 commit 257f885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/core.int.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
xdescribe
} from '@jest/globals';
import { request } from 'undici';
import OpenAI from 'openai';
import { ErrorPayloadType, EventRequestType } from '../types';
import initialDB from './initial-db';
import http from 'http';
Expand Down Expand Up @@ -513,6 +512,7 @@ describe('local client id and secret', () => {
xdescribe('testing openAI', () => {
test('simple chat completion call being logged', async () => {
/* eslint-disable-next-line @typescript-eslint/no-var-requires */
const OpenAI = require('openai');
await Supergood.init(
{
clientId: CLIENT_ID,
Expand Down

0 comments on commit 257f885

Please sign in to comment.