Skip to content

Commit

Permalink
fix manual docs
Browse files Browse the repository at this point in the history
  • Loading branch information
chitalian committed Jan 5, 2025
1 parent ede6745 commit 1cb3954
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ SUPABASE_URL="http://localhost:54321"
NEXT_PUBLIC_HELICONE_RESTRICT_PRO="true"
NEXT_PUBLIC_BASE_PATH="https://oai.helicone.ai/v1"
NEXT_PUBLIC_SLACK_CLIENT_ID="1234567890"
SLACK_CLIENT_SECRET="1234567890"
SLACK_CLIENT_SECRET="1234567890"
NEXT_PUBLIC_HELICONE_JAWN_SERVICE="http://localhost:8585"
18 changes: 11 additions & 7 deletions docs/getting-started/self-host/manual.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ yarn
```

```bash
# Start All Workers
bash run_all_workers.sh
# Start OpenAI Proxy Worker
npx wrangler dev --local --var WORKER_TYPE:OPENAI_PROXY --port 8787 --test-scheduled
```

### Start Jawn (Serves Web)
Expand All @@ -83,6 +83,7 @@ I a new terminal tab, run the following:

```bash
cd valhalla/jawn
cp .env.example .env
yarn && yarn dev
```

Expand All @@ -91,25 +92,28 @@ yarn && yarn dev
I a new terminal tab, run the following:

```bash
cp .env.example web/.env
cd web
yarn
yarn dev
yarn dev:local -p 3000
```

## Step 3 - Setup your instance

You are done!

```bash
export OPENAI_API_KEY="sk-"
export HELICONE_API_KEY="sk-helicone-aizk36y-5yue2my-qmy5tza-n7x3aqa"
curl --request POST \
--url http://127.0.0.1:8787/v1/chat/completions \
--header 'Authorization: Bearer <OPENAI_KEY>' \
--header 'Helicone-Auth: Bearer sk-helicone-aizk36y-5yue2my-qmy5tza-n7x3aqa' \
--header "Authorization: Bearer $OPENAI_API_KEY" \
--header "Helicone-Auth: Bearer $HELICONE_API_KEY" \
--header 'Content-Type: application/json' \
--header 'OpenAI-Organization: ' \
--header 'Accept-Encoding: identity' \
--header 'helicone-property-hello: world' \
--data '{
"model": "gpt-3.5-turbo-0613",
"model": "gpt-4o-mini",
"messages": [
{
"role": "system",
Expand Down
1 change: 1 addition & 0 deletions valhalla/jawn/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ S3_SECRET_KEY="minioadmin"
S3_ENDPOINT="http://localhost:9000"
S3_BUCKET_NAME="request-response-storage"
HELICONE_WORKER_URL="http://localhost:8787"
CSB_API_KEY="unknown"

0 comments on commit 1cb3954

Please sign in to comment.