replicate / replicate-go

Go client for Replicate
https://replicate.com
Apache License 2.0
65 stars 9 forks source link

Consolidate on functional options #6

Closed nickstenning closed 1 year ago

nickstenning commented 1 year ago

This changes the signature of NewClient to only accept variadic Options, and to return an error if one occurs while setting up the client.

This leaves us with the internal implementation details of the client and its options fully encapsulated by the package, which should give us substantial freedom to extend the API in future while minimising breakage for users.

mattt commented 1 year ago

These changes are now available in v0.6.0.