NexonSU / telegram-go-chatbot

t.me/zavtrachat bot
The Unlicense
16 stars 5 forks source link

Add YandexGPT Summarizer #20

Closed ede11 closed 10 months ago

ede11 commented 10 months ago

Summarizer have free API

Example:

import requests endpoint = 'https://300.ya.ru/api/sharing-url' response = requests.post( endpoint, json = { 'article_url': 'https://habr.com/ru/news/729422/' }, headers = {'Authorization': 'OAuth '} ) response.json() { "status": "success", "sharing_url": "https://300.ya.ru/3fOcYRBL" }

NexonSU commented 10 months ago

https://github.com/NexonSU/telegram-go-chatbot/commit/01a2ea7407e750ff199d5909724bbb80ffd62921