- Introduced `useClaude` option in `AnalysisPipelineOptions` to toggle Claude LLM usage. - Updated `processProductChunk` and `analyzeProducts` functions to accept and handle `useClaude` parameter. - Modified argument parsing in various scripts (`bestsellers-by-category`, `mid-range-sellers-by-category`, `top-monthly-sold-by-category`, etc.) to include `--claude` flag. - Enhanced `analyzeProductsInternal` to differentiate between LLM providers and handle requests to Claude API. - Added error handling for Claude API responses and ensured proper configuration for using Claude. - Updated documentation and usage messages to reflect the new `--claude` flag.
22 lines
767 B
Plaintext
22 lines
767 B
Plaintext
KEEPA_API_KEY=your_keepa_api_key_here
|
|
SP_API_CLIENT_ID=your_sp_api_client_id
|
|
SP_API_CLIENT_SECRET=your_sp_api_client_secret
|
|
SP_API_REFRESH_TOKEN=your_sp_api_refresh_token
|
|
SP_API_REGION=na
|
|
SP_API_MARKETPLACE_ID=ATVPDKIKX0DER
|
|
SP_API_SELLER_ID=your_seller_id
|
|
SP_API_USE_SANDBOX=false
|
|
AWS_ACCESS_KEY_ID=your_aws_access_key_id
|
|
AWS_SECRET_ACCESS_KEY=your_aws_secret_access_key
|
|
# AWS_SESSION_TOKEN=optional_if_using_sts
|
|
REDIS_URL=redis://localhost:6379
|
|
LLM_URL=http://localhost:1234/v1
|
|
LLM_MODEL=default
|
|
ANTHROPIC_API_KEY=your_anthropic_api_key
|
|
ANTHROPIC_MODEL=claude-3-5-sonnet-20241022
|
|
CACHE_TTL=86400
|
|
GOOGLE_API_KEY=your_google_api_key
|
|
GOOGLE_CSE_ID=your_google_programmable_search_engine_id
|
|
SERPAPI_API_KEY=your_serpapi_api_key_for_google_shopping
|
|
|