Skip to content

Commit

Permalink
nit: remove maxTokens input
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Oct 16, 2023
1 parent e2d087a commit 864042a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions langchain/src/agents/tests/agent.int.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,16 @@ test("Pass runnable to agent executor", async () => {
expect(res.output).not.toEqual("Agent stopped due to max iterations.");
});

test("Add a fallback method", async () => {
test.only("Add a fallback method", async () => {
// Model should always fail since the model name passed does not exist.
const modelBase = new ChatOpenAI({
modelName: "fake-model",
temperature: 10,
maxTokens: 10,
});

const modelLarge = new ChatOpenAI({
modelName: "gpt-3.5-turbo-16k",
temperature: 0.6,
maxTokens: 10,
});

const model = modelBase.withFallbacks({
Expand Down

0 comments on commit 864042a

Please sign in to comment.