Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,16 @@ import koditclient "github.com/helixml/kodit/clients/go"
client, err := koditclient.NewClient("https://kodit.example.com")

// List repositories
resp, err := client.GetApiV1Repositories(ctx)
resp, err := client.GetRepositories(ctx, nil)

// Search
resp, err := client.PostApiV1SearchMulti(ctx, koditclient.PostApiV1SearchMultiJSONRequestBody{
TextQuery: "create a deployment",
TopK: 10,
text := "create a deployment"
resp, err := client.PostSearch(ctx, koditclient.PostSearchJSONRequestBody{
Data: &koditclient.DtoSearchData{
Attributes: &koditclient.DtoSearchAttributes{
Text: &text,
},
},
})
```

Expand Down Expand Up @@ -418,6 +422,7 @@ kodit serve --env-file .env
| `SEARCH_LIMIT` | `10` | Default search result limit |
| `DISABLE_TELEMETRY` | `false` | Disable anonymous usage telemetry |
| `HTTP_CACHE_DIR` | (empty) | Directory for caching HTTP POST responses to disk; avoids repeated API calls during development |
| `REPORTING_LOG_TIME_INTERVAL` | `5` | Progress reporting interval in seconds |

### Embedding Provider

Expand Down
Loading