Skip to content

Commit

Permalink
fix: types?
Browse files Browse the repository at this point in the history
  • Loading branch information
transmissions11 committed Jun 11, 2024
1 parent c8b27b4 commit 9058441
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/prompt.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { FluxNodeData, FluxNodeType, Settings } from "./types";

Check failure on line 1 in src/utils/prompt.ts

View workflow job for this annotation

GitHub Actions / Build

Argument of type '{ role: string; content: string; }' is not assignable to parameter of type 'CreateCompletionRequest'.

Check failure on line 1 in src/utils/prompt.ts

View workflow job for this annotation

GitHub Actions / Build

Argument of type '{ role: string; content: string; }' is not assignable to parameter of type 'CreateCompletionRequest'.

Check failure on line 1 in src/utils/prompt.ts

View workflow job for this annotation

GitHub Actions / Build

Argument of type '{ role: string; content: string; }' is not assignable to parameter of type 'CreateCompletionRequest'.

Check failure on line 1 in src/utils/prompt.ts

View workflow job for this annotation

GitHub Actions / Build

Argument of type '{ role: string; content: string; }' is not assignable to parameter of type 'CreateCompletionRequest'.

Check failure on line 1 in src/utils/prompt.ts

View workflow job for this annotation

GitHub Actions / Build

Property 'role' does not exist on type 'CreateCompletionRequest'.

Check failure on line 1 in src/utils/prompt.ts

View workflow job for this annotation

GitHub Actions / Build

Property 'content' does not exist on type 'CreateCompletionRequest'.
import { ChatCompletionRequestMessage } from "openai-streams";
import { CreateCompletionRequest } from "openai-streams";
import { MAX_AUTOLABEL_CHARS } from "./constants";
import { Node } from "reactflow";

export function messagesFromLineage(
lineage: Node<FluxNodeData>[],
settings: Settings
): ChatCompletionRequestMessage[] {
const messages: ChatCompletionRequestMessage[] = [];
): CreateCompletionRequest[] {
const messages: CreateCompletionRequest[] = [];

// Iterate backwards.
for (let i = lineage.length - 1; i >= 0; i--) {
Expand Down

0 comments on commit 9058441

Please sign in to comment.