Skip to content

Commit

Permalink
feat(core): adding opened recent file to segments struct (#3237)
Browse files Browse the repository at this point in the history
* feat(backend): adding open recent file segments

chore: add relevant snippets to client-open-api

* feat: update snippet count check in extract_snippets_from_segments
  • Loading branch information
Sma1lboy authored Oct 5, 2024
1 parent 780b9eb commit 42e1ced
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 3 deletions.
2 changes: 2 additions & 0 deletions clients/tabby-openapi/lib/tabby.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ export interface components {
*
* Sorted in descending order of [Snippet::score]. */
relevant_snippets_from_changed_files?: components["schemas"]["Snippet"][] | null;
/** @description The relevant code snippets extracted from recently opened files. These snippets are selected from candidates found within code chunks based on the last visited location. Current Active file is excluded from the search candidates. When provided with [Segments::relevant_snippets_from_changed_files], the snippets have already been deduplicated to ensure no duplication with entries in [Segments::relevant_snippets_from_changed_files]. */
relevant_snippets_from_recently_opened_files?: components["schemas"]["Snippet"][] | null;
/** @description Clipboard content when requesting code completion. */
clipboard?: string | null;
};
Expand Down
Loading

0 comments on commit 42e1ced

Please sign in to comment.