Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/srgchrksv/gemini-ai

A simple conversational Go Gemini-ai chat
https://github.com/srgchrksv/gemini-ai

chat gemini gemini-api genai go golang google

Last synced: 4 days ago
JSON representation

A simple conversational Go Gemini-ai chat

Awesome Lists containing this project

README

        

## A simple conversational Go Gemini-ai chat

Chat keeps converastion history for a session

### To begin:

Get api key here : [https://aistudio.google.com/app/apikey](https://aistudio.google.com/app/apikey)

Create .env file with environment variable API_KEY=your_api_key

### Install required packages, run:

```bash
go mod tidy
```

### Run chat:

```bash
go run main.go
```

Additionally you can check googles examples on how to get started with the Gemini API in Go applications [https://ai.google.dev/tutorials/go_quickstart](https://ai.google.dev/tutorials/go_quickstart)