Skip to content

Commit

Permalink
Increasing token limit for APIs (Patches #1721) (#298)
Browse files Browse the repository at this point in the history
With the current defaults, it's possible that responses from a
FixieCorpus search will be snipped. This PR fixes this for now by
increasing the token limit. We might need to reconsider these numbers in
the future.
  • Loading branch information
farzadab committed Sep 15, 2023
1 parent b561847 commit 5d7b202
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/ai-jsx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"repository": "fixie-ai/ai-jsx",
"bugs": "https://github.com/fixie-ai/ai-jsx/issues",
"homepage": "https://ai-jsx.com",
"version": "0.17.1",
"version": "0.17.2",
"volta": {
"extends": "../../package.json"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export function getNextConversationStep(
// Function responses can potentially be very large. In that case, we need
// some way of handling that so the context window doesn't blow up.
return (
<LargeFunctionResponseWrapper numChunks={4} maxLength={4000} failedMaxLength={2000}>
<LargeFunctionResponseWrapper numChunks={10} maxLength={10500} failedMaxLength={4000}>
{executedFunction}
</LargeFunctionResponseWrapper>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export function redactedFunctionTools(messages: ConversationMessage[]): UseTools
<RerankerFormatted
query={query}
documents={responseContent.chunks}
top_n={2}
top_n={6}
Formatter={MarkdownChunkFormatter}
/>
),
Expand Down

3 comments on commit 5d7b202

@vercel
Copy link

@vercel vercel bot commented on 5d7b202 Sep 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ai-jsx-docs – ./packages/docs

ai-jsx-docs-fixie-ai.vercel.app
ai-jsx-docs.vercel.app
ai-jsx-docs-git-main-fixie-ai.vercel.app
docs.ai-jsx.com

@vercel
Copy link

@vercel vercel bot commented on 5d7b202 Sep 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ai-jsx-tutorial-nextjs – ./packages/tutorial-nextjs

ai-jsx-tutorial-nextjs-fixie-ai.vercel.app
ai-jsx-tutorial-nextjs.vercel.app
ai-jsx-tutorial-nextjs-git-main-fixie-ai.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 5d7b202 Sep 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ai-jsx-nextjs-demo – ./packages/nextjs-demo

ai-jsx-nextjs-demo-fixie-ai.vercel.app
ai-jsx-nextjs-demo.vercel.app
ai-jsx-nextjs-demo-git-main-fixie-ai.vercel.app

Please sign in to comment.