Documentation
¶
Index ¶
- Constants
- type ModelTokenLimits
- type Service
- func (s *Service) BaseURL() string
- func (s *Service) ChatModelTokenLimits(modelID string) (ModelTokenLimits, bool)
- func (s *Service) InvalidateChatModels()
- func (s *Service) ListChatModels(ctx context.Context) ([]api.ModelInfo, error)
- func (s *Service) RefreshChatModels(ctx context.Context) ([]api.ModelInfo, error)
- func (s *Service) SetAccessToken(token string)
- func (s *Service) SetBaseURL(baseURL string)
Constants ¶
View Source
const ( DefaultBaseURL = "https://ai.space.opencsg.com" DefaultLoginURL = "" /* 181-byte string literal not displayed */ DefaultAccessTokenURL = "https://opencsg.com/settings/access-token" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModelTokenLimits ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) ChatModelTokenLimits ¶
func (s *Service) ChatModelTokenLimits(modelID string) (ModelTokenLimits, bool)
func (*Service) InvalidateChatModels ¶
func (s *Service) InvalidateChatModels()
func (*Service) ListChatModels ¶
func (*Service) RefreshChatModels ¶
func (*Service) SetAccessToken ¶
func (*Service) SetBaseURL ¶
Click to show internal directories.
Click to hide internal directories.