Skip to content

Commit

Permalink
chore: modify module naming from enterprise github to public github (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
h0rv authored Dec 7, 2023
2 parents ccac548 + ca435b9 commit 1b2d2fb
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 24 deletions.
39 changes: 19 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
# go-watsonx

A watsonx API Wrapper Client for Go
A watsonx API Wrapper Client for Go

## Install

Install:
Install:

```sh
go get -u github.ibm.com/robby-ibm/go-watsonx
```
```sh
go get -u github.com/h0rv/go-watsonx
```

Import:
Import:

```go
import (
wx "github.ibm.com/robby-ibm/go-watsonx/foundation_models"
)
```
```go
import (
wx "github.com/h0rv/go-watsonx/foundation_models"
)
```

## Example Usage

### Builder Pattern

```go
```go
model, err := wx.NewModelBuilder().
SetModelId(wx.ModelTypesEnum.LLAMA_2_70B_CHAT).
SetApiKey(yourWatsonxApiKey).
Expand All @@ -44,20 +44,19 @@
// Failed to call generate on model
return err
}
```

```

## Setup

### Pre-commit Hooks

Run the following command to run pre-commit formatting:
Run the following command to run pre-commit formatting:

```sh
git config --local core.hooksPath .githooks/
```
```sh
git config --local core.hooksPath .githooks/
```

## Resources

- [watsonx Python SDK Docs](https://ibm.github.io/watson-machine-learning-sdk)
- [watsonx REST API Docs (Internal)](https://test.cloud.ibm.com/apidocs/watsonx-ai)
- [watsonx Python SDK Docs](https://ibm.github.io/watson-machine-learning-sdk)
- [watsonx REST API Docs (Internal)](https://test.cloud.ibm.com/apidocs/watsonx-ai)
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.ibm.com/robby-ibm/go-watsonx
module github.com/h0rv/go-watsonx

go 1.21.2
4 changes: 2 additions & 2 deletions models/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"io"
"time"

"github.ibm.com/robby-ibm/go-watsonx/models/client"
"github.ibm.com/robby-ibm/go-watsonx/utils"
"github.com/h0rv/go-watsonx/models/client"
"github.com/h0rv/go-watsonx/utils"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion models/test/generate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"testing"

"github.ibm.com/robby-ibm/go-watsonx/models"
"github.com/h0rv/go-watsonx/models"
)

const (
Expand Down

0 comments on commit 1b2d2fb

Please sign in to comment.