Skip to content

Commit fd456dd

Browse files
committed
Update README.md
1 parent 918bc04 commit fd456dd

File tree

2 files changed

+60
-3
lines changed

2 files changed

+60
-3
lines changed

README.md

+59-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,59 @@
1-
# golamify
2-
A Go client library for seamless integration with the Ollama API.
1+
# GoLamify
2+
3+
The **GoLamify** Go package provides an easy way to integrate Go projects with **Ollama**.
4+
5+
## 🚀 Getting Started
6+
7+
### Installation
8+
9+
To get started with GoLamify, add the following import to your code, and use Go’s module support to automatically fetch dependencies:
10+
11+
```go
12+
import "github.com/prasad89/golamify/pkg/golamify"
13+
```
14+
15+
Alternatively, install it using:
16+
17+
```bash
18+
go get -u github.com/prasad89/golamify
19+
```
20+
21+
### 🏃 Running GoLamify
22+
23+
Here's a simple example to get a GoLamify application up and running:
24+
25+
```go
26+
package main
27+
28+
import (
29+
"fmt"
30+
"github.com/prasad89/golamify/pkg/golamify"
31+
)
32+
33+
func main() {
34+
client, err := golamify.NewClient(nil)
35+
if err != nil {
36+
fmt.Println("Error creating client:", err)
37+
return
38+
}
39+
40+
resp, err := golamify.Generate(client, "llama3.2", "Why is the sky blue?")
41+
if err != nil {
42+
fmt.Println("Error generating response:", err)
43+
return
44+
}
45+
46+
fmt.Println("Response:", resp.Response)
47+
}
48+
```
49+
50+
### 📂 More Examples
51+
52+
Explore additional examples in the `examples` directory to see how you can make the most of GoLamify.
53+
54+
## 👍 Contributing
55+
56+
Help us make GoLamify even better:
57+
58+
- Star this repo on GitHub! 🌟
59+
- Submit issues and pull requests for improvements and bug fixes.

pkg/golamify/model.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type PullResponse struct {
1212
Status string `json:"status"`
1313
Digest string `json:"digest"`
1414
Total string `json:"total"`
15-
Error string `josn:"error`
15+
Error string `josn:"error"`
1616
}
1717

1818
func ShowModel(model string, c *Client) (int, error) {

0 commit comments

Comments
 (0)