feapaydin / rubygpt

Ruby wrapper for OpenAI's ChatGPT APIs.
MIT License
21 stars 0 forks source link

Core: Global Usage Endpoints #7

Closed feapaydin closed 7 months ago

feapaydin commented 7 months ago

Writing the static module methods.

Creates endpoints to use the library without the procedure of creating new client/configuration instances.

# Creating singleton instances
Rubygpt.configure(api_key:, model:) # #<Rubygpt::Client:0x00000001286117e0>
Rubygpt.chat # #<Rubygpt::Requester::ChatRequester>

This PR also sets the tone for upcoming feature APIs.