Introduction
Awesome AI/LLM framework for Go
LinGoose is a Go framework for building awesome AI/LLM applications.
Did you know? A goose 🪿 fills its car 🚗 with goose-line ⛽!
🚀 Support the project by starring ⭐ the repository on GitHub and sharing it with your friends!
mkdir example
cd example
go mod init example
package main
import (
"context"
"fmt"
"github.com/henomis/lingoose/llm/openai"
"github.com/henomis/lingoose/thread"
)
func main() {
myThread := thread.New().AddMessage(
thread.NewUserMessage().AddContent(
thread.NewTextContent("Tell me a joke about geese"),
),
)
err := openai.New().Generate(context.Background(), myThread)
if err != nil {
panic(err)
}
fmt.Println(myThread)
}
go mod tidy
export OPENAI_API_KEY=your-api-key
go run .
A goose fills its car with goose-line!
If you think you’ve found a bug, or something isn’t behaving the way you think it should, please raise an issue on GitHub.
We welcome contributions, Read our Contribution Guidelines to learn more about contributing to LinGoose
© Simone Vellei, 2023~time.Now()
Released under the MIT License