A webpage summarizer based on google's gemini API
In your code
import github.com/SHA-4096/gemini-webpage-summarizer/websum
Download this package by go mod
go mod tidy
Initialize the gemini chat session or use your existing client,session and context:
InitWebsumWithGeminiApiKey(YOUR_API_KEY)
or
ImportExistingClientAndChatSession(client,chatSession,context)
Use GetWebpageSummary()
to get a summary of a webpage
summary,err := GetWebPageSummary(url)