Skip to content
Merged
Show file tree
Hide file tree
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
37 changes: 0 additions & 37 deletions .github/ISSUE_TEMPLATE/bug_report--ldai.md

This file was deleted.

20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature_request--ldai.md

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/ldai-ci.yml

This file was deleted.

1 change: 0 additions & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
".": "7.17.0",
"ldotel": "1.3.5",
"ldai": "0.9.4",
"ldmiddleware": "0.1.3"
}
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The SDK is tested against three Go versions: the latest, penultimate, and a mini
Whereas the latest and penultimate are updates on a regular cadence to track upstream Go releases, the minimum version
may be bumped at the discretion of the SDK maintainers to take advantage of new features.

Invoke the following make command, which will update `go.mod`, `ldotel/go.mod`, `ldai/go.mod`, `ldmiddleware/go.mod`,
Invoke the following make command, which will update `go.mod`, `ldotel/go.mod`, `ldmiddleware/go.mod`,
`testservice/go.mod`, and `.github/variables/go-versions.env` (pass the desired Go version):
```shell
make bump-min-go-version MIN_GO_VERSION=1.18
Expand Down
31 changes: 1 addition & 30 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ COVERAGE_ENFORCER_FLAGS=-package github.com/launchdarkly/go-server-sdk/v7 \
-skipcode "// COVERAGE" \
-packagestats -filestats -showcode

ALL_BUILD_TARGETS=sdk ldotel ldai ldmiddleware
ALL_BUILD_TARGETS=sdk ldotel ldmiddleware
ALL_TEST_TARGETS = $(addsuffix -test, $(ALL_BUILD_TARGETS))
ALL_LINT_TARGETS = $(addsuffix -lint, $(ALL_BUILD_TARGETS))

Expand All @@ -35,7 +35,6 @@ test: $(ALL_TEST_TARGETS)
bump-min-go-version:
go mod edit -go=$(MIN_GO_VERSION) go.mod
cd ldotel && go mod edit -go=$(MIN_GO_VERSION) go.mod
cd ldai && go mod edit -go=$(MIN_GO_VERSION) go.mod
cd ldmiddleware && go mod edit -go=$(MIN_GO_VERSION) go.mod
cd testservice && go mod edit -go=$(MIN_GO_VERSION) go.mod
cd ./.github/variables && sed -i.bak "s#min=[^ ]*#min=$(MIN_GO_VERSION)#g" go-versions.env && rm go-versions.env.bak
Expand Down Expand Up @@ -83,33 +82,6 @@ ldotel-lint: $(LINTER_VERSION_FILE)
cd ldotel && ../$(LINTER) run .; \
fi

ldai:
@if [ -f go.work ]; then \
echo "Building ldai with workspace"; \
go build ./ldai; \
else \
echo "Building ldai without workspace"; \
cd ldai && go build .; \
fi

ldai-test:
@if [ -f go.work ]; then \
echo "Testing ldai with workspace"; \
go test -v -race ./ldai; \
else \
echo "Testing ldai without workspace"; \
cd ldai && go test -v -race .; \
fi

ldai-lint: $(LINTER_VERSION_FILE)
@if [ -f go.work ]; then \
echo "Linting ldai with workspace"; \
$(LINTER) run ./ldai; \
else \
echo "Linting ldai without workspace"; \
cd ldai && ../$(LINTER) run .; \
fi

ldmiddleware:
@if [ -f go.work ]; then \
echo "Building ldmiddleware with workspace"; \
Expand Down Expand Up @@ -186,7 +158,6 @@ workspace: go.work
go.work:
go work init ./
go work use ./ldotel
go work use ./ldai
go work use ./ldmiddleware
go work use ./testservice

Expand Down
13 changes: 0 additions & 13 deletions ldai/LICENSE.txt

This file was deleted.

81 changes: 9 additions & 72 deletions ldai/README.md
Original file line number Diff line number Diff line change
@@ -1,81 +1,18 @@
LaunchDarkly Server-side AI SDK for Go
==============================================

[![Actions Status](https://github.com/launchdarkly/go-server-sdk/actions/workflows/ldai-ci.yml/badge.svg?branch=v7)](https://github.com/launchdarkly/go-server-sdk/actions/workflows/ldai-ci.yml)
This package has moved to its own repository:
**[launchdarkly/go-server-sdk-ai](https://github.com/launchdarkly/go-server-sdk-ai)**

> [!CAUTION]
> This AI SDK is in pre-release and not subject to backwards compatibility guarantees. The API may change based on feedback.
>
> Pin to a specific minor version and review the [changelog] before upgrading.
>
> Active feature development is ongoing in the [Python][python-ai-sdk] and [Node.js][node-ai-sdk] AI SDKs, so this SDK will receive new features at a slower pace. Refer to those for the latest capabilities.
Update your import path:

[changelog]: https://github.com/launchdarkly/go-server-sdk/blob/v7/ldai/CHANGELOG.md
[python-ai-sdk]: https://github.com/launchdarkly/python-server-sdk-ai/tree/main/packages/sdk/server-ai
[node-ai-sdk]: https://github.com/launchdarkly/js-core/tree/main/packages/sdk/server-ai

LaunchDarkly overview
-------------------------
[LaunchDarkly](https://www.launchdarkly.com) is a feature management platform that serves trillions of feature flags daily to help teams build better software, faster. [Get started](https://docs.launchdarkly.com/home/getting-started) using LaunchDarkly today!

[![Twitter Follow](https://img.shields.io/twitter/follow/launchdarkly.svg?style=social&label=Follow&maxAge=2592000)](https://twitter.com/intent/follow?screen_name=launchdarkly)

Getting started
-----------

Import the module:

```go
import (
ld "github.com/launchdarkly/go-server-sdk/v7"
"github.com/launchdarkly/go-server-sdk/ldai"
)
```

Configure the base LaunchDarkly Server SDK:

```go
sdkClient, _ = ld.MakeClient("your-sdk-key", 5*time.Second)
```

Instantiate the AI client, passing in the base Server SDK:
```go
aiClient, err := ldai.NewClient(sdkClient)
```

Fetch a model configuration for a specific LaunchDarkly context:
```go
// The default value 'ldai.Disabled()' be returned if LaunchDarkly is unavailable or the config
// cannot be fetched. To customize the default value, use ldai.NewConfig().
config := aiClient.CompletionConfig("your-model-key", ldcontext.New("user-key"), ldai.Disabled(), nil)

// Access the methods on config. To generate analytic events related to usage of the model config,
// obtain a tracker by calling config.CreateTracker().
tracker := config.CreateTracker()
import "github.com/launchdarkly/go-server-sdk-ai/ldai"
```
Learn more
-----------

Read our [documentation](http://docs.launchdarkly.com) for in-depth instructions on configuring and using LaunchDarkly.
You can also head straight to the [complete reference guide for this SDK](https://docs.launchdarkly.com/sdk/ai/go).


Contributing
------------

We encourage pull requests and other contributions from the community. Check out our [contributing guidelines](../CONTRIBUTING.md) for instructions on how to contribute to this library.

About LaunchDarkly
-----------
Version numbers continue from where this package stopped. The last release from
this repository was `0.9.4`. The next release is `0.10.0`, from the new
repository.

* LaunchDarkly is a continuous delivery platform that provides feature flags as a service and allows developers to iterate quickly and safely. We allow you to easily flag your features and manage them from the LaunchDarkly dashboard. With LaunchDarkly, you can:
* Roll out a new feature to a subset of your users (like a group of users who opt-in to a beta tester group), gathering feedback and bug reports from real-world use cases.
* Gradually roll out a feature to an increasing percentage of users, and track the effect that the feature has on key metrics (for instance, how likely is a user to complete a purchase if they have feature A versus feature B?).
* Turn off a feature that you realize is causing performance problems in production, without needing to re-deploy, or even restart the application with a changed configuration file.
* Grant access to certain features based on user attributes, like payment plan (eg: users on the ‘gold’ plan get access to more features than users in the ‘silver’ plan). Disable parts of your application to facilitate maintenance, without taking everything offline.
* LaunchDarkly provides feature flag SDKs for a wide variety of languages and technologies. Read [our documentation](https://docs.launchdarkly.com/sdk) for a complete list.
* Explore LaunchDarkly
* [launchdarkly.com](https://www.launchdarkly.com/ "LaunchDarkly Main Website") for more information
* [docs.launchdarkly.com](https://docs.launchdarkly.com/ "LaunchDarkly Documentation") for our documentation and SDK reference guides
* [apidocs.launchdarkly.com](https://apidocs.launchdarkly.com/ "LaunchDarkly API Documentation") for our API documentation
* [blog.launchdarkly.com](https://blog.launchdarkly.com/ "LaunchDarkly Blog Documentation") for the latest product updates
The [CHANGELOG](./CHANGELOG.md) in this directory keeps the release history up
to `0.9.4`.
Loading
Loading