Skip to content

Commit

Permalink
refactor: fromLanguageModelMessages function signature (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Jul 14, 2024
1 parent a2731e5 commit d78f71a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { LanguageModelV1Message } from "@ai-sdk/provider";
import { CoreMessage, ToolCallContentPart } from "../../../types";

type fromLanguageModelMessagesOptions = {
mergeRoundtrips: boolean;
};

export const fromLanguageModelMessages = (
lm: LanguageModelV1Message[],
mergeRoundtrips: boolean,
{ mergeRoundtrips }: fromLanguageModelMessagesOptions,
): CoreMessage[] => {
const messages: CoreMessage[] = [];

Expand Down

0 comments on commit d78f71a

Please sign in to comment.