diff --git a/.github/workflows/agent-issue.yml b/.github/workflows/agent-issue.yml index 3ca5d3e..cd77fda 100644 --- a/.github/workflows/agent-issue.yml +++ b/.github/workflows/agent-issue.yml @@ -14,7 +14,7 @@ jobs: with: api_token: ${{ secrets.AGENT_TOKEN }} api_url: ${{ secrets.AGENT_API_URL }} - debug: false + debug: true name: Send Tasks to Agent 'on': issue_comment: diff --git a/dist/index.js b/dist/index.js index ee276d6..ea17abd 100644 --- a/dist/index.js +++ b/dist/index.js @@ -32929,8 +32929,8 @@ async function run() { inputs: { segment_id, document_id, - embed_text: comments[0], - store_text: comments[comments.length - 1], + embed_text: String(comments[0]).trim(), + store_text: String(comments[comments.length - 1]).trim(), }, }, }; diff --git a/index.js b/index.js index b5e3eb7..6d586ad 100644 --- a/index.js +++ b/index.js @@ -97,8 +97,8 @@ async function run() { inputs: { segment_id, document_id, - embed_text: comments[0], - store_text: comments[comments.length - 1], + embed_text: String(comments[0]).trim(), + store_text: String(comments[comments.length - 1]).trim(), }, }, };