Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/speakeasy-sdks/honeyhive-go-sdk

Honey Hive Go SDK
https://github.com/speakeasy-sdks/honeyhive-go-sdk

ai golang llm llmops sdk

Last synced: 1 day ago
JSON representation

Honey Hive Go SDK

Awesome Lists containing this project

README

        

# HoneyHive Go SDK



HoneyHive is a model observability and evaluation platform that helps you continuously improve your models in production. We help you evaluate, deploy, monitor and fine-tune both closed and open-source large language models for production use-cases, allowing you to optimize model performance & align your models with your users’ preferences.




## SDK Installation

```bash
go get github.com/speakeasy-sdks/honeyhive-go-sdk
```

## Authentication

After signing up on the app, you can find your API key in the [Settings page](https://app.honeyhive.ai/settings/account).

## SDK Example Usage

```go
package main

import (
"context"
"log"
"github.com/speakeasy-sdks/honeyhive-go-sdk"
"github.com/speakeasy-sdks/honeyhive-go-sdk/pkg/models/shared"
"github.com/speakeasy-sdks/honeyhive-go-sdk/pkg/models/operations"
)

func main() {
s := honeyhive.New(honeyhive.WithSecurity(
shared.Security{
BearerAuth: shared.SchemeBearerAuth{
Authorization: "Bearer YOUR_BEARER_TOKEN_HERE",
},
},
))

req := operations.CreateDatasetRequest{
Request: shared.Dataset{
Description: "unde",
File: "deserunt",
Name: "porro",
Purpose: "nulla",
Task: "id",
},
}

ctx := context.Background()
res, err := s.Dataset.CreateDataset(ctx, req)
if err != nil {
log.Fatal(err)
}

if res.CreateDatasetResponse != nil {
// handle response
}
}
```

## SDK Available Operations

### Dataset

* `CreateDataset` - Create Dataset
* `DeleteDataset` - Delete Datasets
* `FindDatasets` - Get Datasets

### Feedback

* `CreateFeedback` - Create Feedback

### FineTunedModel

* `FindFineTunedModels` - This endpoint gets the fine-tuned models being managed by the user.

### Generation

* `GetGeneration` - Get Generations
* `IngestGenerations` - Create Generation for Task
* `ModelPromptCreateGeneration` - Create Generation for Model and Prompt
* `TaskCreateGeneration` - Create Generation for Task

### Metric

* `CreateMetric` - Create Metric
* `FindMetrics` - Get Metrics

### Prompt

* `ChangePrompt` - Update Prompts
* `CreatePrompt` - Create Prompt
* `DeletePrompt` - Delete Prompts
* `FindPrompts` - Get Prompts

### Task

* `CreateTask` - Create a new task
* `FindAllTasks` - Find all Tasks
* `UpdateTask` - Update an existing task

### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)