GO-GIN-RESTAPI-OPENAI is a robust implementation of a REST API using the Gin framework in Golang, seamlessly integrated with OpenAI's powerful natural language processing (NLP) capabilities. This project demonstrates how to build efficient and scalable APIs that leverage AI-driven text generation, embeddings, and chat models.
git clone https://github.com/titi0001/GO-GIN-RESTAPI-OPENAI.git cd GO-GIN-RESTAPI-OPENAI
go mod tidy
go run main.go
http://localhost:9000/.| Method | Endpoint | Description |
|---|---|---|
| GET | / | Serves the homepage |
| POST | /api/generate | Generates text using OpenAI |
| POST | /api/embedding | Returns word embeddings |
This project is licensed under the MIT License.
Feel free to fork, contribute, and explore! For any questions, open an issue in the repository.
š GitHub Repository: GO-GIN-RESTAPI-OPENAI