Skip to content

Commit

Permalink
final push
Browse files Browse the repository at this point in the history
  • Loading branch information
notwedtm committed Dec 29, 2024
1 parent 3848a1a commit 67006ef
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ init:
ctlptl create registry prism-registry --port 5000 || true
ctlptl create cluster kind --registry=prism-registry || true
git submodule update --init
pushd deploy/chart && helm dep update && popd
pushd deploy/charts/prism-agent && helm dep update && popd
touch .env

build-eliza:
Expand Down
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ This repo will work on Linux/MacOS/Windows as long as you have Docker (or Docker
* Make sure to enable [Kubernetes](https://docs.docker.com/desktop/features/kubernetes/) in Docker Desktop.
* [Tilt](https://docs.tilt.dev/install.html) - Local Kubernetes Development Toolkit

After you have installed the required tools (or started your codespace), you are ready to start your agent!

## Quickstart

1. **Initialize**
Expand All @@ -41,14 +43,19 @@ This repo will work on Linux/MacOS/Windows as long as you have Docker (or Docker

1. **Configuration**

The absolute bare minimum you need to provide is an `OPENROUTER_API_KEY` variable.
The absolute bare minimum you need to provide is an `OPENAI_API_KEY` variable.
You can acquire one [here](https://platform.openai.com/docs/overview).

You can acquire one via [OpenRouter.ai](https://openrouter.ai/).

We also suggest getting an `OPENROUTER_API_KEY` as well.
We recommend OpenRouter because of their ability to dynamically route requests to the best model, as well as deal automatically with failovers.

Once you have a key, put it in the `.env` file:
You can acquire one via [OpenRouter.ai](https://openrouter.ai/).

Once you have the keys, add them to the newly created `.env` file:

```
OPENAI_API_KEY=sk-...
OPENROUTER_API_KEY=sk-or-....
```

Expand All @@ -58,6 +65,10 @@ This repo will work on Linux/MacOS/Windows as long as you have Docker (or Docker

Run `tilt up` in the root directory and then visit https://localhost:10350/

NOTE: There is currently an issue where upon first startup the `@elizaos/adapter-postgres` attempts to create the `vector` plugin when it's already available.

Simply restart the `prism-agent` resource by clicking the refresh icon on the right side of it's name.

3. **Talk to your Agent**

After a short period, you should see all green on the containers and you should be able to access the Agent UI at http://localhost:3800.
Expand Down
2 changes: 1 addition & 1 deletion character.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"modelProvider": "openrouter",
"modelProvider": "openai",
"clients": [],
"plugins": [],
"settings": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ data:

# Database and cache settings
CACHE_STORE: "redis"
REDIS_URL: "redis://{{ .Release.Name }}-redis-master.{{ .Release.Namespace }}.svc.cluster.local:6379"
REDIS_URL: "redis://:{{ .Values.redis.auth.password }}@{{ .Release.Name }}-redis-master.{{ .Release.Namespace }}.svc.cluster.local:6379"
POSTGRES_URL: "postgresql://postgres:{{ .Values.postgresql.auth.postgresPassword }}@{{ .Release.Name }}-postgresql.{{ .Release.Namespace }}.svc.cluster.local:5432/{{ .Values.postgresql.auth.database }}"

# Feature Flags
Expand Down
1 change: 1 addition & 0 deletions deploy/charts/prism-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ redis:
enabled: true
auth:
password: prism-agent-redis-password

# PostgreSQL configuration
postgresql:
enabled: true
Expand Down

0 comments on commit 67006ef

Please sign in to comment.