mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-04 21:00:40 +08:00
Fix more /improve suggestions
This commit is contained in:
@ -758,6 +758,7 @@ class GithubProvider(GitProvider):
|
|||||||
|
|
||||||
def _get_github_client(self):
|
def _get_github_client(self):
|
||||||
self.deployment_type = get_settings().get("GITHUB.DEPLOYMENT_TYPE", "user")
|
self.deployment_type = get_settings().get("GITHUB.DEPLOYMENT_TYPE", "user")
|
||||||
|
self.auth = None
|
||||||
if self.deployment_type == 'app':
|
if self.deployment_type == 'app':
|
||||||
try:
|
try:
|
||||||
private_key = get_settings().github.private_key
|
private_key = get_settings().github.private_key
|
||||||
|
@ -18,7 +18,7 @@ class DocHelper(BaseModel):
|
|||||||
user_question: str = Field(description="The user's question")
|
user_question: str = Field(description="The user's question")
|
||||||
response: str = Field(description="The response to the user's question")
|
response: str = Field(description="The response to the user's question")
|
||||||
relevant_sections: List[relevant_section] = Field(description="A list of the relevant markdown/restructured text sections in the documentation that answer the user's question, ordered by importance (most relevant first)")
|
relevant_sections: List[relevant_section] = Field(description="A list of the relevant markdown/restructured text sections in the documentation that answer the user's question, ordered by importance (most relevant first)")
|
||||||
question_is_relevant: int = Field(description="Return 1 if the question is somewhat relevant to documenation. 0 - otherwise")
|
question_is_relevant: int = Field(description="Return 1 if the question is somewhat relevant to documentation. 0 - otherwise")
|
||||||
=====
|
=====
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user