build Coverage Status Go Report Card Godoc Release
A golang API library for AI Engineering.
This is a high level feature overview.
- Chat Completion
- Embedding
go get -u 'github.com/tech1024/goai'package main import ( "context" "log" "github.com/tech1024/goai" "github.com/tech1024/goai/provider/ollama" ) func main() { ollamaClient, _ := ollama.NewClient("http://127.0.0.1:11434") chat := goai.NewChat(ollama.NewNewChatModel(ollamaClient, "deepseek-r1")) result, err := chat.Chat(context.Background(), "What can you do for me ?") if err != nil { log.Fatal(err) } log.Println(result) }
This project is licensed under the Apache 2.0 license.
If you have any issues or feature requests, please contact us. PR is welcomed.