[FEATURE] Add AI-based /ask command (complementing #54) #56
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: ABOCN/TelegramBot#56
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ai-features"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Alr
@ -0,0 +92,4 @@
}
)
let fullResponse = ""
I'm not sure about what it does, but always prefer to use const whenever it's possible
@lucmsilva651 Everything is good now, if you want to test and/or merge.
Don't use axios like this, check https://axios-http.com/docs/instance
Why are you printing p1?
There are too many ifs and elses, not only in this file but others too. Maybe we could separate them soon. let's try to do this in the future ;)
pls, avoid to set any as a type
Tysm for the review @GiovaniFZ !! I'll take a look
All suggestions implemented, and the files are cleaned up now
I like this idea! I will look into cleaning it up, and maybe break some things into functions so the code is easier to read
@ -0,0 +92,4 @@
}
)
let fullResponse = ""
LLMs essentially stream their output, which is fetched through API (done above with the
axios.post()
).I used let because as the response comes in,
fullResponse
contains the latest complete response (it's live updating) which gets edited on Telegram. Hope this clears it up!