diff --git a/README.md b/README.md index e4fc0e7e..fb939fce 100644 --- a/README.md +++ b/README.md @@ -331,19 +331,19 @@ import { HttpsProxyAgent } from 'https-proxy-agent'; // Configure the default for all requests: const anthropic = new Anthropic({ httpAgent: new HttpsProxyAgent(process.env.PROXY_URL), - baseURL: 'http://localhost:8080/test-api', }); // Override per-request: -await anthropic.messages.create({ +await anthropic.messages.create( + { max_tokens: 1024, messages: [{ role: 'user', content: 'Hello, Claude' }], - model: 'claude-3-opus-20240229' + model: 'claude-3-opus-20240229', }, { httpAgent: new http.Agent({ keepAlive: false }), - } -) + }, +); ``` ## Semantic Versioning