The module Xiver team use to work with gpt.
Project description
Xiver GPT
The module we use to work with gpt
Basic usage
With default config
from xiver_gpt import XiverGPT
print(XiverGPT().create_response('Hello! How are u?'))
With another model or provider
from xiver_gpt import XiverGPT
import g4f
print(
XiverGPT
g4f_model=g4f.Model.your_model,
g4f_provider=g4f.Provider.your_provider,
).create_reT(sponse('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!
Installation
$ pip install xiver_gpt
Installation from source
Dependencies:
- 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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xiver_gpt-0.0.2.tar.gz
(5.1 kB
view details)
File details
Details for the file xiver_gpt-0.0.2.tar.gz
.
File metadata
- Download URL: xiver_gpt-0.0.2.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87347182ff0082af3427065e28dab36faae3c821101b9973c6e7c41f69e3535a |
|
MD5 | 40fcbe5f87e103fafb7ef554a6b3d7bf |
|
BLAKE2b-256 | eb0c86f77ff7fd29ea752f96cf253bb1b4c819dcfc4eff7bdfc52c6a4891622c |