Skip to content

Commit

Permalink
Update imports (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 authored Jan 23, 2024
1 parent 7ed940e commit a2ece49
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions nextjs/app/api/chat/stream_log/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,29 @@

import { NextRequest, NextResponse } from "next/server";

import type { BaseLanguageModel } from "langchain/base_language";
import type { Document } from "langchain/document";
import type { BaseLanguageModel } from "@langchain/core/language_models/base";
import type { Document } from "@langchain/core/documents";

import {
RunnableSequence,
RunnableMap,
RunnableBranch,
RunnableLambda,
Runnable,
} from "langchain/schema/runnable";
import { HumanMessage, AIMessage, BaseMessage } from "langchain/schema";
import { ChatOpenAI } from "langchain/chat_models/openai";
import { StringOutputParser } from "langchain/schema/output_parser";
} from "@langchain/core/runnables";
import { HumanMessage, AIMessage, BaseMessage } from "@langchain/core/messages";
import { ChatOpenAI, OpenAIEmbeddings } from "@langchain/openai";
import { StringOutputParser } from "@langchain/core/output_parsers";
import {
PromptTemplate,
ChatPromptTemplate,
MessagesPlaceholder,
} from "langchain/prompts";
} from "@langchain/core/prompts";
import { RecursiveCharacterTextSplitter } from "langchain/text_splitter";
import { TavilySearchAPIRetriever } from "langchain/retrievers/tavily_search_api";
import { TavilySearchAPIRetriever } from "@langchain/community/retrievers/tavily_search_api";
import { DocumentCompressorPipeline } from "langchain/retrievers/document_compressors";
import { ContextualCompressionRetriever } from "langchain/retrievers/contextual_compression";
import { EmbeddingsFilter } from "langchain/retrievers/document_compressors/embeddings_filter";
import { OpenAIEmbeddings } from "langchain/embeddings/openai";

export const runtime = "edge";

Expand Down

0 comments on commit a2ece49

Please sign in to comment.