Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed Apr 24, 2024
1 parent ec233b1 commit 3e81f39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ee/tabby-ui/app/files/components/chat-side-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ async function buildContextPrompt(
return []
}

const repo = (path = path.split('/')[0])
const segments = path.split('/');
const repo = segments[0];
path = segments.slice(1).join('/');

const tokens = code.split(/[^\w]/).filter(x => x)

Expand Down

0 comments on commit 3e81f39

Please sign in to comment.