Skip to content

Commit

Permalink
fix: 🐛 data error
Browse files Browse the repository at this point in the history
  • Loading branch information
heldrida committed Dec 1, 2023
1 parent 3ae599b commit bb27193
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ client.on("messageCreate", async (msg) => {

job
.on("succeeded", async (response) => {
const message = `👋 Hey ${user.toString()} ${cacheQuery.response}\n\n${warningAssistedAI}`;
const message = `👋 Hey ${user.toString()} ${response}\n\n${warningAssistedAI}`;

await sendMsgCommonHandler({
msg,
Expand Down Expand Up @@ -317,7 +317,7 @@ llmQueue.process(async (job: Job) => {
`http://${process.env.LLM_INDEXER_HOSTNAME}:${process.env.LLM_INDEXER_PORT}/query?question=${query}`,
);

return res.data.answer;
return res.data.answer as string;
} catch (err) {
console.error(err);
}
Expand Down

0 comments on commit bb27193

Please sign in to comment.