Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prasad89/golamify
A Go client library for seamless integration with the Ollama API.
https://github.com/prasad89/golamify
golang ollama
Last synced: 10 days ago
JSON representation
A Go client library for seamless integration with the Ollama API.
- Host: GitHub
- URL: https://github.com/prasad89/golamify
- Owner: prasad89
- License: mit
- Created: 2024-11-01T08:45:58.000Z (15 days ago)
- Default Branch: main
- Last Pushed: 2024-11-04T11:56:32.000Z (12 days ago)
- Last Synced: 2024-11-04T12:27:53.777Z (12 days ago)
- Topics: golang, ollama
- Language: Go
- Homepage: https://pkg.go.dev/github.com/prasad89/golamify
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GoLamify
The **GoLamify** Go package provides an easy way to integrate Go projects with **Ollama**.
## 🚀 Getting Started
### Installation
To get started with GoLamify, add the following import to your code, and use Go’s module support to automatically fetch dependencies:
```go
import "github.com/prasad89/golamify/pkg/golamify"
```Alternatively, install it using:
```bash
go get -u github.com/prasad89/golamify
```### 🏃 Running GoLamify
Here's a simple example to get a GoLamify application up and running:
```go
package mainimport (
"fmt"
"github.com/prasad89/golamify/pkg/golamify"
)func main() {
client, err := golamify.NewClient(nil)
if err != nil {
fmt.Println("Error creating client:", err)
return
}resp, err := golamify.Generate(client, "llama3.2", "Why is the sky blue?")
if err != nil {
fmt.Println("Error generating response:", err)
return
}fmt.Println("Response:", resp.Response)
}
```### 📂 More Examples
Explore additional examples in the `examples` directory to see how you can make the most of GoLamify.
## 👍 Contributing
Help us make GoLamify even better:
- Star this repo on GitHub! 🌟
- Submit issues and pull requests for improvements and bug fixes.