• Creates an OpenAI client configuration with Helicone logging enabled

    Usage: const openai = new OpenAI(withHeliconeOpenAI(apiKey, heliconeApiKey, heliconeBaseLoggingUrl, accountAddress, customProperties));

    Parameters

    • apiKey: string

      The OpenAI API key

    • heliconeApiKey: string

      The Helicone API key for logging

    • heliconeBaseLoggingUrl: string

      The Helicone base logging endpoint URL

    • accountAddress: string

      The account address for logging purposes

    • customProperties: CustomProperties

      Custom properties to add as Helicone headers (should include agentid and sessionid)

    Returns OpenAIConfiguration

    Configuration object for OpenAI constructor with Helicone enabled