Skip to main content

Prerequisites

Install Uno

go get -u github.com/curaious/uno

Setting up the SDK

package main

import (
    "github.com/curaious/uno/pkg/sdk"
    "github.com/curaious/uno/pkg/gateway"
	"github.com/curaious/uno/pkg/llm"
)

func main() {
	client, err := sdk.New(&sdk.ClientOptions{
		LLMConfigs: sdk.NewInMemoryConfigStore([]*gateway.ProviderConfig{
			{
				ProviderName:  llm.ProviderNameOpenAI,
				BaseURL:       "",
				CustomHeaders: nil,
				ApiKeys: []*gateway.APIKeyConfig{
					{
						Name:   "Key 1",
						APIKey: "",
					},
				},
			},
		}),
	})
}