flows-network / telegram-llm

A Telegram LLM bot written in Rust
https://flows.network/
GNU General Public License v3.0
66 stars 21 forks source link

Working branch to update to async SDKs #4

Closed juntao closed 1 year ago

juntao commented 1 year ago

Hello, I am a code review bot on flows.network. Here are my reviews of code commits in this PR.


This GitHub pull request is for an update that includes implementing async SDKs. The changes include updating the versions of openai-flows, tg-flows, and adding new dependencies. There is also a change from synchronous to asynchronous code. The potential issues include ensuring compatibility issues do not arise with the new dependencies and the new implementation's error handling. Additionally, some hard-coded values should ideally be stored elsewhere. Finally, there are some typos and unclear reference. The most important finding in this update is the use of asynchrony, which could significantly improve the application's performance.

Details

Commit c522b4bda96e657b472df6b60e7cdf40e1369062

The key changes in this patch are updating the versions of openai-flows, tg-flows, and adding new dependencies, including OpenAIFlows and tokio_wasi, as well as changing the implementation of chat_completion with the new SDK it provides.

The potential problems I have identified are:

Commit b1ed8eb8b82f923138d1a9f5109d703096f4aa74

Key changes:

Potential problems:

alabulei1 commented 1 year ago

LGTM