config.go 663 B

1234567891011121314151617
  1. package config
  2. import (
  3. "github.com/sashabaranov/go-openai"
  4. "time"
  5. )
  6. type Config struct {
  7. Name string `json:"name"`
  8. Content string `json:"content,omitempty"`
  9. ChatGPTMessages []openai.ChatCompletionMessage `json:"chatgpt_messages,omitempty"`
  10. FilePath string `json:"filepath,omitempty"`
  11. ModifiedAt time.Time `json:"modified_at"`
  12. Size int64 `json:"size,omitempty"`
  13. IsDir bool `json:"is_dir"`
  14. Enabled bool `json:"enabled"`
  15. }