Documentation
¶
Index ¶
- func CreateApplication(ctx context.Context, projectID pgtype.UUID) (*models.Application, error)
- func CreateApplicationInternalAPIKey(ctx context.Context, applicationID pgtype.UUID) (*models.ApiKey, error)
- func CreateCohereModelParameters() *json.RawMessage
- func CreateCoherePromptConfig(ctx context.Context, applicationID pgtype.UUID) (*models.PromptConfig, error)
- func CreateOpenAIModelParameters() *json.RawMessage
- func CreateOpenAIPromptConfig(ctx context.Context, applicationID pgtype.UUID) (*models.PromptConfig, error)
- func CreateOpenAIPromptMessages(systemMessage string, userMessage string, templateVariables *[]string) *json.RawMessage
- func CreateProject(ctx context.Context) (*models.Project, error)
- func CreatePromptRequestRecord(ctx context.Context, promptConfigID pgtype.UUID) (*models.PromptRequestRecord, error)
- func CreateProviderAPIKey(ctx context.Context, projectID pgtype.UUID, apiKey string, ...) (models.ProviderKey, error)
- func CreateProviderPricingModels(ctx context.Context) error
- func CreateUserAccount(ctx context.Context) (*models.UserAccount, error)
- func RandomString(length int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateApplication ¶
func CreateCohereModelParameters ¶
func CreateCohereModelParameters() *json.RawMessage
func CreateOpenAIModelParameters ¶
func CreateOpenAIModelParameters() *json.RawMessage
func CreateOpenAIPromptMessages ¶
func CreateOpenAIPromptMessages( systemMessage string, userMessage string, templateVariables *[]string, ) *json.RawMessage
func CreateProviderAPIKey ¶
func CreateProviderAPIKey( ctx context.Context, projectID pgtype.UUID, apiKey string, modelVendor models.ModelVendor, ) (models.ProviderKey, error)
func CreateUserAccount ¶
func CreateUserAccount(ctx context.Context) (*models.UserAccount, error)
func RandomString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.