Skip to content

Commit

Permalink
move
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis committed Oct 11, 2023
1 parent 28c0d62 commit 593e1cc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 178 deletions.
22 changes: 9 additions & 13 deletions langchain/src/runnables/remote.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
import { Runnable, RunnableBatchOptions } from "./base.js";
import { RunnableConfig } from "./config.js";
import { IterableReadableStream } from "../../util/stream.js";
import { Runnable, RunnableBatchOptions } from "../schema/runnable/index.js";
import { RunnableConfig } from "../schema/runnable/config.js";
import {
BaseCallbackConfig,
CallbackManagerForChainRun,
} from "../../callbacks/manager.js";
import {
getBytes,
getLines,
getMessages,
} from "../../util/event-source-parse.js";
import { Document } from "../../document.js";
} from "../callbacks/manager.js";
import { getBytes, getLines, getMessages } from "../util/event-source-parse.js";
import { Document } from "../document.js";
import {
AIMessage,
AIMessageChunk,
Expand All @@ -22,9 +17,10 @@ import {
HumanMessageChunk,
SystemMessage,
SystemMessageChunk,
} from "../index.js";
import { StringPromptValue } from "../../prompts/base.js";
import { ChatPromptValue } from "../../prompts/chat.js";
} from "../schema/index.js";
import { StringPromptValue } from "../prompts/base.js";
import { ChatPromptValue } from "../prompts/chat.js";
import { IterableReadableStream } from "../util/stream.js";

type RemoteRunnableOptions = {
timeout?: number;
Expand Down
4 changes: 2 additions & 2 deletions langchain/src/runnables/tests/runnable_remote.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { jest, test } from "@jest/globals";

import { RemoteRunnable } from "../runnable/remote.js";
import { AIMessageChunk } from "../index.js";
import { RemoteRunnable } from "../remote.js";
import { AIMessageChunk } from "../../schema/index.js";

const BASE_URL = "http://my-langserve-endpoint";

Expand Down
163 changes: 0 additions & 163 deletions langchain/src/schema/tests/runnable_remote.test.ts

This file was deleted.

0 comments on commit 593e1cc

Please sign in to comment.