Skip to content

Beesonn/mangoai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mango

Mango 🥭 is a Golang wrapper for the MangoAPI, providing powerful AI functionalities and LLM capabilities. It's really cool! Give it a try and access some of its models for free.

Installation

Install the mango api

go get github.com/Mishel-07/mangoai@latest

Usage

Here is a basic example of how to use mango ai:

package main

import (
    "fmt"
    "github.com/Mishel-07/mangoai/mango"
)

func main() {
    client := mango.NewMango()

    messages := []mango.Messages{           
           Role:    "user",
           Content: "hi",
    },
    chatCompletion, err := client.Chat.Completions.Create("gpt-4o", messages)
    if err != nil {
            fmt.Println("Error:", err)
            return
    }
    
    content := chatCompletion.Choices[0].Message.Content
    fmt.Println(content)
  
}

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Contact

For support or inquiries, please reach out to us at Telegram Support.

About

Mango 🥭 is a Golang wrapper for the MangoAPI, providing powerful AI functionalities and LLM capabilities. It's really cool! Give it a try and access some of its models for free.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages