Skip to content

Commit

Permalink
chore: deprecate lightspeed plugins (#2545)
Browse files Browse the repository at this point in the history
* deprecate lightspeed plugins in backstage-plugins

Signed-off-by: Stephanie <yangcao@redhat.com>

* clean up yarn dependency

Signed-off-by: Stephanie <yangcao@redhat.com>

---------

Signed-off-by: Stephanie <yangcao@redhat.com>
  • Loading branch information
yangcao77 authored Nov 19, 2024
1 parent 86c7c1b commit a044779
Show file tree
Hide file tree
Showing 67 changed files with 39 additions and 6,235 deletions.
2 changes: 0 additions & 2 deletions plugins/lightspeed-backend/.eslintignore

This file was deleted.

1 change: 0 additions & 1 deletion plugins/lightspeed-backend/.eslintrc.js

This file was deleted.

4 changes: 0 additions & 4 deletions plugins/lightspeed-backend/.lintstagedrc.json

This file was deleted.

12 changes: 0 additions & 12 deletions plugins/lightspeed-backend/.prettierignore

This file was deleted.

20 changes: 0 additions & 20 deletions plugins/lightspeed-backend/.prettierrc.js

This file was deleted.

47 changes: 2 additions & 45 deletions plugins/lightspeed-backend/README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,3 @@
# Lightspeed Backend
# Deprecated

This is the lightspeed backend plugin that enables you to interact with any LLM server running a model with OpenAI's API compatibility.

## Getting Started

### Installing the plugin

```bash
yarn add --cwd packages/backend @janus-idp/backstage-plugin-lightspeed-backend
```

### Configuring the Backend

Add the following to your `packages/backend/src/index.ts` file:

```ts title="packages/backend/src/index.ts"
const backend = createBackend();

// Add the following line
backend.add(import('@janus-idp/backstage-plugin-lightspeed-backend'));

backend.start();
```

### Plugin Configurations

Add the following lightspeed configurations into your `app-config.yaml` file:

```yaml
lightspeed:
servers:
- id: <server id>
url: <serverURL>
token: <api key> # dummy token
```
Example local development configuration:
```yaml
lightspeed:
servers:
- id: 'my-llm-server'
url: 'https://localhost:443/v1'
token: 'js92n-ssj28dbdk902' # dummy token
```
This package has been moved to the [red-hat-developer/rhdh-plugins](https://github.com/redhat-developer/rhdh-plugins) repository. Migrate to using `@red-hat-developer-hub/backstage-plugin-lightspeed-backend` instead.
70 changes: 0 additions & 70 deletions plugins/lightspeed-backend/__fixtures__/chatResponse.json

This file was deleted.

45 changes: 0 additions & 45 deletions plugins/lightspeed-backend/__fixtures__/handlers.ts

This file was deleted.

Empty file.
25 changes: 0 additions & 25 deletions plugins/lightspeed-backend/config.d.ts

This file was deleted.

7 changes: 0 additions & 7 deletions plugins/lightspeed-backend/dev/index.ts

This file was deleted.

81 changes: 0 additions & 81 deletions plugins/lightspeed-backend/package.json

This file was deleted.

Loading

0 comments on commit a044779

Please sign in to comment.