Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tabby-webserver): add readRepositoryRelatedQuestions query and related functionality #3768

Open
wants to merge 7 commits into
base: support-read-file-list
Choose a base branch
from

Conversation

Sma1lboy
Copy link
Collaborator

@Sma1lboy Sma1lboy commented Jan 27, 2025

Provides a query readRepositoryRelatedQuestions interface, as well as a cache of the same source_id with 30mins. This interface allows you to get three questions about the current repository to help you get started with your current project.

image

https://jam.dev/c/70930e68-577a-4e12-a71f-d216417b452c

…ated_questions for clarity

refactor: rename generateRepoRelateQuestion to readRepositoryRelatedQuestions for clarity and fix typo in cache lifespan constant

fix: improve error message for repository not found scenario
@Sma1lboy Sma1lboy force-pushed the feat-adding-gen-relate-file-list-question branch from a38ffb4 to e7aa666 Compare January 28, 2025 23:55
@Sma1lboy Sma1lboy requested a review from wsxiaoys January 29, 2025 03:59
Copy link
Member

@wsxiaoys wsxiaoys left a comment

Choose a reason for hiding this comment

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

Mostly LGTM, just a few nits on directory structure.

ee/tabby-webserver/src/service/common_prompt_tools.rs Outdated Show resolved Hide resolved
ee/tabby-webserver/src/service/common_prompt_tools.rs Outdated Show resolved Hide resolved
@wsxiaoys wsxiaoys marked this pull request as ready for review January 31, 2025 10:24
@Sma1lboy Sma1lboy changed the title feat: add generateRepoRelateQuestion query and related functionality feat(tabby-webserver): add readRepositoryRelatedQuestions query and related functionality Feb 4, 2025
@Sma1lboy Sma1lboy requested a review from wsxiaoys February 4, 2025 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants