underthesea icon indicating copy to clipboard operation
underthesea copied to clipboard

Integrate with Foundation Models

Open rain1024 opened this issue 1 year ago • 0 comments

Integrate with foundation models such as ChatGPT and Claude.

Suggested API:

Generate API

> from underthesea import generate
> generate("Ai là tổng thống Mỹ năm 2024")

Chat API

> from underthesea import chat
> chat([
   {"user": "xin chào các bạn"},
   {"assistant": ""}
])

rain1024 avatar Jul 24 '24 02:07 rain1024