Documentation ¶
Index ¶
Constants ¶
Variables ¶
View Source
var DefaultSystemMessage = `` /* 1362-byte string literal not displayed */
Functions ¶
func RepoComment ¶
func RepoComment(cfg RepoCommentCfg) error
Types ¶
type Client ¶
type Client struct { Gnt *sblgnt.SBLGNT Syn *syntax.SBLGNTSyntax SystemMessage string Logger *slog.Logger // contains filtered or unexported fields }
func (*Client) GetCommentary ¶
func (gpt *Client) GetCommentary(ref commentary.Ref) ([]byte, error)
type MinNode ¶
type MinNode struct { Cat string `json:"Cat"` Head string `json:"Head,omitempty"` Rule string `json:"Rule,omitempty"` ClType string `json:"ClType,omitempty"` Lemma string `json:"Lemma,omitempty"` Number string `json:"Num,omitempty"` Type string `json:"Type,omitempty"` Case string `json:"Case,omitempty"` Gender string `json:"MFN,omitempty"` Content string `json:"Content,omitempty"` N []MinNode `json:"N,omitempty"` }
type MinSyntax ¶
func GetSyntax ¶
func GetSyntax(syn *syntax.SBLGNTSyntax, ref commentary.Ref) ([]MinSyntax, error)
type NullHandler ¶
type NullHandler struct{}
type RepoCommentCfg ¶
type RepoCommentCfg struct { Gpt *Client Repo *commentary.CommentaryRepo // Should already be Open Book sblgnt.BookName Chapter, Verse int Fake bool // Generate filler for testing rather than actually querying GPT Regenerate bool // Regenerate existing verses (default is to skip existing) Workers int }
Click to show internal directories.
Click to hide internal directories.