Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 805 Bytes

README.MD

File metadata and controls

36 lines (27 loc) · 805 Bytes

Go-Gemini-Joke-Generator

This is a Go Fiber API that integrates Google Gemini AI to generate jokes based on user-provided topics. It leverages Fiber and Google Generative AI SDK


Features

  • Go Fiber Framework for fast HTTP server handling.
  • Google Gemini AI Integration for joke generation.
  • Safety Filters to prevent harmful content.
  • Structured Logging for debugging and monitoring.
  • REST API with JSON Input/Output.

Set Up Environment Variables

GEMINI_API_KEY=your_google_gemini_api_key
PORT=8080

API Endpoints

/api/v1/post-gemini-joke

Example response

{
  "joke_topic": "cloud computing",
  "response": "Why do cloud engineers carry umbrellas? Because they work with high chances of showers!"
}