Skip to content

Commit

Permalink
Merge branch 'main' into 513-update-user-tool-modal
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrBulanek committed Oct 29, 2024
2 parents e2ccb73 + a8db861 commit eb02391
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .env.local.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SCHEMA_API_URL=http://localhost:4000/docs/json?showHidden=true
SCHEMA_OBSERVE_URL=http://localhost:4000/docs/json

NEXT_PUBLIC_APP_NAME="Bee"
NEXT_PUBLIC_FEATURE_FLAGS='{"Knowledge":true,"TextExtraction:true","Files":true,"FunctionTools":true,"Observe":true}'
NEXT_PUBLIC_FEATURE_FLAGS='{"Knowledge":true,"TextExtraction":true,"Files":true,"FunctionTools":true,"Observe":true}'

NEXT_PUBLIC_ORGANIZATION_ID_DEFAULT=org_670cc04869ddffe24f4fd70d
NEXT_PUBLIC_PROJECT_ID_DEFAULT=proj_670cc04869ddffe24f4fd70f
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/publish-release-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
- name: Login to ICR
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: ${{ vars.DOCKER_REGISTRY }}
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Extract version from tag
id: get_version
Expand All @@ -36,7 +37,7 @@ jobs:
NEXT_PUBLIC_ORGANIZATION_ID_DEFAULT=org_670cc04869ddffe24f4fd70d
NEXT_PUBLIC_PROJECT_ID_DEFAULT=proj_670cc04869ddffe24f4fd70f
tags: |
iambeeagent/bee-ui-local:latest
iambeeagent/bee-ui-local:${{ steps.get_version.outputs.VERSION }}
cache-from: type=registry,ref=iambeeagent/bee-ui-local:buildcache
cache-to: type=registry,ref=iambeeagent/bee-ui-local:buildcache,mode=max
${{ vars.DOCKER_REGISTRY }}/i-am-bee/bee-ui-local:latest
${{ vars.DOCKER_REGISTRY }}/i-am-bee/bee-ui-local:${{ steps.get_version.outputs.VERSION }}
cache-from: type=registry,ref=${{ vars.DOCKER_REGISTRY }}/i-am-bee/bee-ui-local:buildcache
cache-to: type=registry,ref=${{ vars.DOCKER_REGISTRY }}/i-am-bee/bee-ui-local:buildcache,mode=max
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ With Bee UI, users can build and test custom bees that address unique workflows

## Getting Started

The simplest way to run bee-ui is by using our [bee-stack](https://github.com/i-am-bee/bee-stack), which lets you set up the entire bee application stack locally via docker compose.

If you already have a working [bee-api](https://github.com/i-am-bee/bee-api) instance or can set one up, follow the steps below.


### Set-up Node.js environment

Install the correct version of Node.js according to `.nvmrc`. This can be done using [nvm](https://github.com/nvm-sh/nvm): `nvm install && nvm use` or using [asdf](https://asdf-vm.com/): `asdf plugin-add nodejs && asdf install nodejs`.
Expand All @@ -28,6 +33,14 @@ Install dependencies by running:
pnpm install
```

### Set up environment

Create a `.env.local` file (see `.env.local.example` for all variables available) and set `API_URL` to point to your [bee-api](https://github.com/i-am-bee/bee-api) instance.

```
API_URL=http://localhost:4000/
```

### Run the development server

First, run the development server:
Expand Down
5 changes: 5 additions & 0 deletions src/modules/auth/TermsOfUse.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
padding-inline-end: calc((100% - 6 * $grid-gutter) / 7 + $grid-gutter);
}

ul {
list-style: disc;
padding-inline-start: rem(20px);
}

h2 {
font-size: rem(16px);
line-height: 1.375;
Expand Down
2 changes: 1 addition & 1 deletion src/modules/tools/ToolsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function ToolsList({ type }: Props) {
type:
type === 'user'
? ['user']
: ['code_interpreter', 'file_search', 'function', 'system'],
: ['code_interpreter', 'file_search', 'system'],
limit: PAGE_SIZE,
...order,
search: search.length ? search : undefined,
Expand Down

0 comments on commit eb02391

Please sign in to comment.