Skip to content

Create /ask command #30

@Wikijito7

Description

@Wikijito7

Sends the prompt to AI's API and generate a tts sound with the answer given.

As of right now, this will be using HuggingFace API, as OpenAI have closed their free credits program. Now, this ask command is working with a chat interface, so we could add some extra functionality like addind a flag to convert current thread into a chat with whichever model we are using.

Given prompt should be displayed inside the thread.

Mantain support on the context menu interation (right click a message) in order to generate a response with the content of given message.

We have to check how to stop using huggingface library and transform the request into an api call.

  • Create ask command and it's logic
  • Use ktor to request and get the response
  • Pass along the response into tts class
  • Create context menu interation

Metadata

Metadata

Assignees

Labels

asapThis issue will be considered to implement as soon as possible.commandRelated to a commandenhancementNew feature or request

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions