swuecho / chat

chat web app for teams, sass with user management and ratelimit, support chatgpt(openai & azure), claude, gemini and ollama model
495 stars 86 forks source link

refactor: using twirp instead of raw http #354

Closed swuecho closed 1 month ago

swuecho commented 1 year ago

https://twitchtv.github.io/twirp/

pro:

  1. protobuf -> swagger (self-document)
  2. autogenerate ts client

cons:

  1. extra depends
swuecho commented 2 months ago

https://github.com/danielgtaylor/huma

seems a better option

swuecho commented 2 months ago

https://www.cloudwego.io/docs/hertz/ is an option too.