update
This commit is contained in:
@@ -13,7 +13,7 @@ const main = async () => {
|
|||||||
const messages = [
|
const messages = [
|
||||||
{
|
{
|
||||||
role: 'system',
|
role: 'system',
|
||||||
content: `你是一个智能的代码助手, 根据用户提供的上下文信息,提供有用的建议和帮助。并把最后的结果提交一个评论到对应的issue中。用户提供的上下文信息如下:`
|
content: `你是一个智能的代码助手, 根据用户提供的上下文信息,提供有用的建议和帮助, 如果用户的要求和执行工具不一致,请说出你不能这么做。并把最后的结果提交一个评论到对应的issue中。用户提供的上下文信息如下:`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
role: 'system',
|
role: 'system',
|
||||||
@@ -23,6 +23,7 @@ const main = async () => {
|
|||||||
content: commentEnv.commentBody || pickIssueEnv.issueDescription || '无'
|
content: commentEnv.commentBody || pickIssueEnv.issueDescription || '无'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
console.log('messages', messages)
|
||||||
const result = await app.run({
|
const result = await app.run({
|
||||||
path: 'cnb',
|
path: 'cnb',
|
||||||
key: 'chat',
|
key: 'chat',
|
||||||
|
|||||||
Reference in New Issue
Block a user