diff --git a/README.md b/README.md index c537d33..9c5ed95 100644 --- a/README.md +++ b/README.md @@ -71,13 +71,10 @@ import ( func main() { ctx := context.Background() - traceloop := sdk.NewClient(config.Config{ - BaseURL: "api.traceloop.com", + traceloop := sdk.NewClient(ctx, config.Config{ APIKey: os.Getenv("TRACELOOP_API_KEY"), }) defer func() { traceloop.Shutdown(ctx) }() - - traceloop.Initialize(ctx) } ``` @@ -122,14 +119,11 @@ func main() { ctx := context.Background() // Initialize Traceloop - traceloop := sdk.NewClient(config.Config{ - BaseURL: "api.traceloop.com", + traceloop := sdk.NewClient(ctx, config.Config{ APIKey: os.Getenv("TRACELOOP_API_KEY"), }) defer func() { traceloop.Shutdown(ctx) }() - traceloop.Initialize(ctx) - // Call OpenAI like you normally would resp, err := client.CreateChatCompletion( context.Background(),