Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Lex Machina Agent Configuration
# Copy this file to .env and fill in your values

# API Base URL (defaults to stage environment if not set)
API_BASE_URL=https://law-api-poc.stage.lexmachina.com
# API Base URL (defaults to production if not set)
API_BASE_URL=https://law.lexmachina.com

# Authentication Method 1: Direct API Token
# Uncomment and set this if you have a direct API token
Expand Down
4 changes: 2 additions & 2 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ CLIENT_SECRET=your_client_secret
# Option 3: Delegation URL (not yet implemented)
DELEGATION_URL=your_delegation_url

# API base URL (defaults to stage environment)
API_BASE_URL=https://law-api-poc.stage.lexmachina.com
# API base URL (defaults to production)
API_BASE_URL=https://law.lexmachina.com
```

### Configuration Error Handling
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ In essence, this proxy makes it easy to integrate Lex Machina's data and analyti
The the application and container accepts the following environment variables:

- `BASE_URL`: URL where this application will be available (default: `http://localhost:10011`)
- `API_BASE_URL`: Base URL for the Lex Machina API (default: `https://law-api-poc.stage.lexmachina.com`)
- `API_BASE_URL`: Base URL for the Lex Machina API (default: `https://law.lexmachina.com`)
- `CLIENT_ID`: OAuth2 client ID (requires CLIENT_SECRET)
- `CLIENT_SECRET`: OAuth2 client secret (requires CLIENT_ID)
- `DELEGATION_URL`: URL for OAuth2 delegation-based authentication (not yet implemented)
Expand Down Expand Up @@ -103,7 +103,7 @@ docker run -d \
-p 10011:10011 \
-e CLIENT_ID=your_client_id \
-e CLIENT_SECRET=your_client_secret \
-e API_BASE_URL=https://law-api-poc.stage.lexmachina.com \
-e API_BASE_URL=https://law.lexmachina.com \
ghcr.io/lexmachinainc/lexmachina-agent:latest

# Using environment file
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
# API_TOKEN: "your_api_token_here"
# CLIENT_ID: "your_client_id"
# CLIENT_SECRET: "your_client_secret"
API_BASE_URL: "https://law-api-poc.stage.lexmachina.com"
API_BASE_URL: "https://law.lexmachina.com"
BASE_URL: "http://lexmachina-agent:10011"
env_file:
- .env # Optional: load environment variables from .env file
Expand Down
2 changes: 1 addition & 1 deletion docs/docker-publishing.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ docker run -d \
--name lexmachina-agent \
-p 10011:10011 \
-e API_TOKEN=your_token \
-e API_BASE_URL=https://law-api-poc.stage.lexmachina.com \
-e API_BASE_URL=https://law.lexmachina.com \
ghcr.io/lexmachinainc/lexmachina-agent:latest
```

Expand Down
2 changes: 1 addition & 1 deletion src/lexmachina_agent/agent_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class APIAgentConfiguration:

def __init__(self) -> None:
# Load configuration from environment variables
api_base_url = os.environ.get("API_BASE_URL", "https://law-api-poc.stage.lexmachina.com")
api_base_url = os.environ.get("API_BASE_URL", "https://law.lexmachina.com")
token = os.environ.get("API_TOKEN")
client_id = os.environ.get("CLIENT_ID")
client_secret = os.environ.get("CLIENT_SECRET")
Expand Down