Documentation
¶
Index ¶
Constants ¶
View Source
const ( // APIEndpoint is the URL for the OpenAI API APIEndpoint = "https://api.openai.com/v1/chat/completions" // Using gpt-3.5-turbo as it's more stable, cost-effective, and sufficient for kubectl command generation ModelName = "gpt-3.5-turbo" )
Variables ¶
This section is empty.
Functions ¶
func OpenAIRequest ¶
func RunCommand ¶
RunCommand executes the given kubectl command
Types ¶
type Options ¶
type Options struct {
genericclioptions.IOStreams
OpenAIKey string
}
Click to show internal directories.
Click to hide internal directories.