Documentation
¶
Overview ¶
Package fptcloud provides an FPT Smart Cloud AI Marketplace language and embedding model implementation for GoAI, using the OpenAI-compatible endpoints.
The platform offers two regions: "global" (default, mkp-api.fptcloud.com) and "jp" (mkp-api.fptcloud.jp). Use WithRegion to switch.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*options)
Option configures the FPT Smart Cloud provider.
func WithAPIKey ¶
WithAPIKey sets a static API key for authentication.
func WithBaseURL ¶
WithBaseURL overrides the region-derived base URL entirely.
func WithHTTPClient ¶
WithHTTPClient sets a custom HTTP client for all requests.
func WithHeaders ¶
WithHeaders sets additional HTTP headers sent with every request.
func WithRegion ¶
WithRegion selects the API region. Valid values: "global" (default) or "jp". Unknown values fall back to "global".
func WithTokenSource ¶
func WithTokenSource(ts provider.TokenSource) Option
WithTokenSource sets a dynamic token source for authentication.