Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProfileAssistantPrompt ¶
func ProfileInformation ¶
Types ¶
type AzureConfig ¶
type AzureConfig struct { APIEndpoint string `survey:"api_endpoint" mapstructure:"api_endpoint" json:"api_endpoint"` APIKey string `survey:"api_key" mapstructure:"api_key" json:"api_key"` DeploymentId string `survey:"deployment_id" mapstructure:"deployment_id" json:"deployment_id"` AssistantPrompt string `survey:"assistant_prompt" mapstructure:"assistant_prompt" json:"assistant_prompt"` }
Azure config
type Config ¶
type Config struct {
Profiles []Profile `mapstructure:"profiles" json:"profiles"`
}
Config
func (*Config) CreateProfile ¶
Create new profile
func (*Config) DeleteProfile ¶
Delete profile by id
func (*Config) SwitchProfile ¶
Switch profile
type OpenAIConfig ¶
type OpenAIConfig struct { APIKey string `survey:"api_key" mapstructure:"api_key" json:"api_key"` Model OpenAIModel `survey:"model" mapstructure:"model" json:"model"` AssistantPrompt string `survey:"assistant_prompt" mapstructure:"assistant_prompt" json:"assistant_prompt"` }
OpenAI config
type OpenAIModel ¶
type OpenAIModel = string
const ( // Embeddings TextEmbeddingAda_002 OpenAIModel = "text-embedding-ada-002" // GPT-3.5 GPT_3_5_Turbo OpenAIModel = "gpt-3.5-turbo" GPT_3_5_Turbo_16k OpenAIModel = "gpt-3.5-turbo-16k" GPT_3_5_Turbo_0613 OpenAIModel = "gpt-3.5-turbo-0613" GPT_3_5_Turbo_16k_0613 OpenAIModel = "gpt-3.5-turbo-16k-0613" TextDavinci_003 OpenAIModel = "text-davinci-003" TextDavinci_002 OpenAIModel = "text-davinci-002" CodeDavinci_002 OpenAIModel = "code-davinci-002" // GPT-4 GPT_4 OpenAIModel = "gpt-4" GPT_4_0613 OpenAIModel = "gpt-4-0613" GPT_4_32k OpenAIModel = "gpt-4-32k" GPT_4_32k_0613 OpenAIModel = "gpt-4-32k-0613" )
type Profile ¶
type Profile struct { Provider Provider `mapstructure:"provider" json:"provider"` Name string `survey:"name" mapstructure:"name" json:"name"` Azure *AzureConfig `mapstructure:"azure,omitempty" json:"azure"` OpenAI *OpenAIConfig `mapstructure:"open_ai,omitempty" json:"open_ai"` }
Profile
Click to show internal directories.
Click to hide internal directories.