GitXplorerGitXplorer
a

hey_gpt

public
2 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
da0fb214570a5ad088b847a31f7a44eed6aa1f79

Set `Conversation::MAX_TOKENS` to 4096

aatipugin committed a year ago
Verified
fb99654f626d22410afda6bd66aea7092901574e

Install curl in Dockerfile

aatipugin committed a year ago
Verified
415abd708a6cbc4181938c9ed0cb0903a32c7202

Use tiktoken_ruby

aatipugin committed a year ago
Verified
725ae0f9aa1a28f896da724741da55b5dba7653c

Change limit cooldown to 2 hours

aatipugin committed 2 years ago
Verified
76d98e309336facd47d711c35f190a538291c434

Force `#to_s`

aatipugin committed 2 years ago
Verified
44cc37736ab189e5d5f26e0298796e153952a5a5

Use `Sentry.capture_message`

aatipugin committed 2 years ago

README

The README file for this repository.

🤖 Hey GPT

Rails app that powers Hey GPT Telegram bot.

Basically it's just a webhook handler which processes each message in the background using Sidekiq. Something like this:

sequenceDiagram;
  participant U as User;
  participant B as Bot;
  participant A as Rails app;
  participant W as Sidekiq worker;
  U->>B: sends message
  B->>A: sends webhook with update
  A->>W: enqueues webhook processing job
  W->>U: sends message with response (usually from OpenAI API)

Stack

  • Ruby/Rails/Sidekiq
  • PostgreSQL
  • Redis