Documentation ¶
Index ¶
- func FeedItems(u string, words []string) error
- func OpenAISum(token, text string) (string, error)
- func RssList(path string) ([]string, error)
- func TgTextSend(botId, apiKey, chatId, text string) error
- func WordsCheck(txt string, words []string) (intersect []string, err error)
- func WordsList(path string) ([]string, error)
- type OpenAIReq
- type OpenAIResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TgTextSend ¶
Types ¶
type OpenAIResp ¶
type OpenAIResp struct { ID string `json:"id"` Object string `json:"object"` Created int `json:"created"` Model string `json:"model"` Choices []struct { Text string `json:"text"` Index int `json:"index"` Logprobs interface{} `json:"logprobs"` FinishReason string `json:"finish_reason"` } `json:"choices"` Usage struct { PromptTokens int `json:"prompt_tokens"` CompletionTokens int `json:"completion_tokens"` TotalTokens int `json:"total_tokens"` } `json:"usage"` }
Click to show internal directories.
Click to hide internal directories.