Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
aboutphilippe committed Sep 13, 2024
1 parent 3803d18 commit 3c8683e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openai/functions/chat/completionsBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { FunctionFailure, log } from "@restackio/restack-sdk-ts/function";
import { ChatCompletionCreateParamsNonStreaming } from "openai/resources/chat/completions";
import { openaiClient } from "../../utils/client";
import { openaiCost, Price } from "../../utils/cost";
import { ChatModel } from "openai/resources/index";
import { ChatCompletion, ChatModel } from "openai/resources/index";

export type UsageOutput = { tokens: number; cost: number };

Expand All @@ -27,7 +27,7 @@ export const openaiChatCompletionsBase = async ({
price,
apiKey,
params,
}: OpenAIChatInput) => {
}: OpenAIChatInput): Promise<{ result: ChatCompletion; cost?: number }> => {
try {
const openai = openaiClient({ apiKey });

Expand Down

0 comments on commit 3c8683e

Please sign in to comment.