from xiver_gpt import XiverGPT
print(XiverGPT().create_response('Hello! How are u?'))
from xiver_gpt import XiverGPT
import g4f
print(
XiverGPT(
g4f_model=g4f.Model.your_model,
g4f_provider=g4f.Provider.your_provider,
).create_response('Hello! How are u?')
)
Attention!
At the moment the initialization of the XiverGPT class object can be quite long due to the selection of a suitable provider. In the future the initialization time will be reduced many times!
$ pip install xiver_gpt
- poetry
$ git clone https://github.com/xiver/xiver-gpt.git; cd xiver_gpt-master
$ poetry install
$ poetry run build; cd dist
$ pip install $(ls -Art | tail -n 1)