Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function startMockOpenAiServer() {
return startMockServer(app);
}

async function run() {
export async function run() {
const server = await startMockOpenAiServer();

const client = new AzureOpenAI({
Expand All @@ -36,5 +36,3 @@ async function run() {

server.close();
}

run();
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function startMockApi() {
return startMockServer(app);
}

async function run() {
export async function run() {
const server = await startMockApi();

await Sentry.startSpan({ op: 'function', name: 'main' }, async () => {
Expand Down Expand Up @@ -236,5 +236,3 @@ async function run() {

server.close();
}

run();
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function startMockApi() {
return startMockServer(app);
}

async function run() {
export async function run() {
const server = await startMockApi();

await Sentry.startSpan({ op: 'function', name: 'conversation-test' }, async () => {
Expand Down Expand Up @@ -70,5 +70,3 @@ async function run() {

server.close();
}

run();
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function startMockApi() {
return startMockServer(app);
}

async function run() {
export async function run() {
const server = await startMockApi();

await Sentry.startSpan({ op: 'function', name: 'main' }, async () => {
Expand Down Expand Up @@ -68,5 +68,3 @@ async function run() {

server.close();
}

run();
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function startMockApi() {
return startMockServer(app);
}

async function run() {
export async function run() {
const server = await startMockApi();

// Test: Multiple chat completions in the same conversation with manual conversation ID
Expand Down Expand Up @@ -52,5 +52,3 @@ async function run() {
server.close();
await Sentry.flush(2000);
}

run();
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function startMockOpenAiServer() {
return startMockServer(app);
}

async function run() {
export async function run() {
const server = await startMockOpenAiServer();

const client = new OpenAI({
Expand All @@ -35,5 +35,3 @@ async function run() {

server.close();
}

run();
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function startMockApi() {
return startMockServer(app);
}

async function run() {
export async function run() {
const server = await startMockApi();
const client = new OpenAI({
baseURL: `${server.url}/openai`,
Expand Down Expand Up @@ -47,5 +47,3 @@ async function run() {
server.close();
await Sentry.flush(2000);
}

run();
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function startMockApi() {
return startMockServer(app);
}

async function run() {
export async function run() {
const server = await startMockApi();
const client = new OpenAI({
baseURL: `${server.url}/openai`,
Expand Down Expand Up @@ -47,5 +47,3 @@ async function run() {
server.close();
await Sentry.flush(2000);
}

run();
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function startMockApi() {
return startMockServer(app);
}

async function run() {
export async function run() {
const server = await startMockApi();

await Sentry.startSpan({ op: 'function', name: 'main' }, async () => {
Expand All @@ -42,5 +42,3 @@ async function run() {

server.close();
}

run();
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function startMockApi() {
return startMockServer(app);
}

async function run() {
export async function run() {
const server = await startMockApi();

await Sentry.startSpan({ op: 'function', name: 'main' }, async () => {
Expand Down Expand Up @@ -132,5 +132,3 @@ async function run() {

server.close();
}

run();
Loading
Loading