docker and readme tweaks

This commit is contained in:
rowellz
2025-02-11 12:23:06 -05:00
parent 0ae4bf0cb6
commit 6c4df26c16
3 changed files with 13 additions and 3 deletions

View File

@@ -111,10 +111,17 @@ To use local LLM, comment out `OPENAI_KEY` and instead uncomment `OPENAI_ENDPOIN
1. Clone the repository 1. Clone the repository
2. Rename `.env.example` to `.env.local` and set your API keys 2. Rename `.env.example` to `.env.local` and set your API keys
3. Run the Docker image: 3. Run `npm install`
4. Run the Docker image:
```bash ```bash
docker compose run --rm deep-research docker compose up -d
```
5. Execute `npm run docker` in the docker service:
```bash
docker exec -it deep-research npm run docker
``` ```
## Usage ## Usage

View File

@@ -1,7 +1,10 @@
services: services:
deep-research: deep-research:
container_name: deep-research
build: . build: .
env_file: env_file:
- .env.local - .env.local
volumes:
- ./:/app/
tty: true tty: true
stdin_open: true stdin_open: true

View File

@@ -13,7 +13,7 @@ const openai = createOpenAI({
baseURL: process.env.OPENAI_ENDPOINT || 'https://api.openai.com/v1', baseURL: process.env.OPENAI_ENDPOINT || 'https://api.openai.com/v1',
} as CustomOpenAIProviderSettings); } as CustomOpenAIProviderSettings);
const customModel = process.env.OPENAI_MODEL || 'o3-mini'; const customModel = process.env.OPENAI_MODEL || 'gpt-4o-mini';
// Models // Models