Skip to content

Commit

Permalink
chore: trigger build
Browse files Browse the repository at this point in the history
  • Loading branch information
joschkabraun committed Feb 1, 2024
1 parent de9b4da commit 57935ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/wrap_openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ function wrapMethod(method: Function, idxArgs: number = 0) {
};
}

export function traceOpenAITriggerDev(ioOpenAIChatCompletionsCreate: Function): Function {
return wrapMethod(ioOpenAIChatCompletionsCreate, 1);
}

export function patchOpenAI(openai: OpenAI) {
// @ts-ignore
openai.chat.completions.create = wrapMethod(openai.chat.completions.create);
}

export function traceOpenAITriggerDev(ioOpenAIChatCompletionsCreate: Function): Function {
return wrapMethod(ioOpenAIChatCompletionsCreate, 1);
}

const MODEL_COST_MAPPING: { [key: string]: number } = {
'gpt-4': 0.03,
'gpt-4-0314': 0.03,
Expand Down

0 comments on commit 57935ed

Please sign in to comment.