Skip to content

Instantly share code, notes, and snippets.

View rodrigorodriguez's full-sized avatar

Rodrigo Rodriguez rodrigorodriguez

View GitHub Profile
const http = require("http");
const https = require("https");
const endpoint = "https://xxxxxxxx-eastus2.openai.azure.com/anthropic";
const deploymentName = "claude-sonnet-4-5";
const apiKey = process.env.AZURE_API_KEY;
// Retry configuration
const RETRY_CONFIG = {
maxRetries: 5,