fix: include question in prompt
All checks were successful
Dependabot Auto-Merge / dependabot (pull_request) Has been skipped
Dependabot Auto-Merge / devopsbot (pull_request) Has been skipped
Dependabot Auto-Merge / rennovatebot (pull_request) Has been skipped
Unit Tests / unittest (pull_request) Successful in 50s
COMMIT LINT / commitlint (pull_request) Successful in 1m25s
All checks were successful
Dependabot Auto-Merge / dependabot (pull_request) Has been skipped
Dependabot Auto-Merge / devopsbot (pull_request) Has been skipped
Dependabot Auto-Merge / rennovatebot (pull_request) Has been skipped
Unit Tests / unittest (pull_request) Successful in 50s
COMMIT LINT / commitlint (pull_request) Successful in 1m25s
This commit is contained in:
7
index.js
7
index.js
@@ -4,7 +4,7 @@ const core = require("@actions/core");
|
||||
const github = require("@actions/github");
|
||||
|
||||
const apiUrl =
|
||||
core.getInput("api_url") || "http://agents-api.servc-agents:3000";
|
||||
core.getInput("api_url") || "http://agent-api.k8s.private";
|
||||
const apiToken = core.getInput("api_token");
|
||||
const route = core.getInput("route") || "agent-lake";
|
||||
const method = core.getInput("method") || "embeddings_insert";
|
||||
@@ -129,7 +129,10 @@ async function run() {
|
||||
}
|
||||
|
||||
const embedText = body ? body.trim() : String(comments[0]).trim();
|
||||
const storeText = String(comments[comments.length - 1]).trim();
|
||||
const storeText = [
|
||||
'Question: ' + embedText,
|
||||
String(comments[comments.length - 1]).trim()
|
||||
].join('\n')
|
||||
|
||||
const requestPayload = {
|
||||
type: "input",
|
||||
|
||||
Reference in New Issue
Block a user