Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CommitPrompt = `` /* 762-byte string literal not displayed */
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
GrokAPI string `json:"grok_api"`
Repos map[string]RepoConfig `json:"repos"`
}
Configuration structure
type GrokRequest ¶
type GrokRequest struct {
Messages []Message `json:"messages"`
Model string `json:"model"`
Stream bool `json:"stream"`
Temperature float64 `json:"temperature"`
}
Grok/X.AI API request structure
type GrokResponse ¶
type GrokResponse struct {
Message Message `json:"message,omitempty"`
Choices []Choice `json:"choices,omitempty"`
Id string `json:"id,omitempty"`
Object string `json:"object,omitempty"`
Created int64 `json:"created,omitempty"`
Model string `json:"model,omitempty"`
Usage UsageInfo `json:"usage,omitempty"`
}
Grok/X.AI API response structure
type RepoConfig ¶
Repository configuration
Click to show internal directories.
Click to hide internal directories.