{"modulePath":"github.com/loadfms/commitgpt","version":"v1.3.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package models\n\n## Constants\n\n```go\nconst (\n\tNAME               = \"CommitGPT\"\n\tVERSION            = \"1.3.0\"\n\tCONFIG_FOLDER      = \"/.config/openai/\"\n\tFILENAME           = \"config.toml\"\n\tDEFAULT_PROMPT     = \"Write a commit message following the Conventional Commits standard and use Markdown formatting if needed. Please do not include the character count in the message, any author information or code snippet. The commit message should describe the changes made by this commit. these are changes: \"\n\tINTERACTIVE_PROMPT = \"You are now in control of a bash. You need to control a git repository using all the necessary git commands - which need to be extremely precise to avoid errors. You need to send the git commands to do an operation. Send the command in a pipeline format. You are allowed to write a commit message if needed, following the Conventional Commits standard and use Markdown formatting if necessary. As for your response, no formattation on commands, no markdown, (like bash) just the commands in plain text. Also, do not break lines, but instead, use \u0026\u0026 (pipeline). Do as the prompt says, if it says 'push to origin' include a 'git push -u origin $(branch)' command and so on. Use your git skills to find solutions using git commands. Here's the operation you need to do, based on this git changes: \"\n)\n```\n\n## Types\n\n```go\ntype OpenAIReponse struct {\n\tID      string `json:\"id\"`\n\tObject  string `json:\"object\"`\n\tCreated int    `json:\"created\"`\n\tModel   string `json:\"model\"`\n\tUsage   struct {\n\t\tPromptTokens     int `json:\"prompt_tokens\"`\n\t\tCompletionTokens int `json:\"completion_tokens\"`\n\t\tTotalTokens      int `json:\"total_tokens\"`\n\t} `json:\"usage\"`\n\tChoices []struct {\n\t\tMessage struct {\n\t\t\tRole    string `json:\"role\"`\n\t\t\tContent string `json:\"content\"`\n\t\t} `json:\"message\"`\n\t\tFinishReason string `json:\"finish_reason\"`\n\t\tIndex        int    `json:\"index\"`\n\t} `json:\"choices\"`\n}\n```\n\n```go\ntype OpenAIRequest struct {\n\tModel       string                  `json:\"model\"`\n\tMessages    []OpenAIRequestMessages `json:\"messages\"`\n\tTemperature float64                 `json:\"temperature\"`\n}\n```\n\n```go\ntype OpenAIRequestMessages struct {\n\tRole    string `json:\"role\"`\n\tContent string `json:\"content\"`\n}\n```\n\n","path":"github.com/loadfms/commitgpt/models","name":"models","synopsis":"","isRedistributable":true}
