-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the huggingchat-api wiki!
Here we gonna talk about the release after v0.0.2.0.
There're a lot of changes made in
v0.0.2.0,
If the problem occurred after updating, please downgrade tov0.0.1.6.
- No changes to the usage of existing methods which avoids rewriting the code.
- Every request is run in async event_loop.
- Migrate from
requeststoaiohttp. - New
dataclass:ModelConfig/RequestOptions/RequestDatafor easier customization of request data and model parameters.
Customized thread queue, every task takes a thread which consumes a lot of resources.
Creates a CoroutineLoop which includes a single thread and an event_loop runs within it.
Every task associated with http request is going to be wrapped as a workflow and then submitted to the event_loop.
This project is now maintained by myself only, there maybe some delay of the new feature and bug fix, feel free to contribute PRs.
I've spent 2 days reconstructing the main part of the code, learned a lot of async coding in Python, but still, i may do something in the wrong way, please report it to me if you find it, thanks.
Feel free to ask any questions or share me with your thoughts!