From ffb603c15a0f5d396c96ac545a0cdd0c814ec4ef Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Tue, 5 Mar 2024 12:10:46 +0100 Subject: [PATCH] docs(readme): fix https proxy example (#311) --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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