Skip to content

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

Notifications You must be signed in to change notification settings

harmoniousmoss/go-joke-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!"
}

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages