@@ -334,9 +334,9 @@ export function calculateDummySongUsage(): HeliconeResponseConfig['usage'] {
334334}
335335
336336/**
337- * Creates a ChatOpenAI configuration with Helicone logging enabled
337+ * Creates a ChatOpenAI configuration with logging enabled
338338 *
339- * Usage: const llm = new ChatOpenAI(withHeliconeLangchain ("gpt-4o-mini", apiKey, heliconeApiKey, heliconeBaseLoggingUrl, accountAddress, agentRequest, customProperties));
339+ * Usage: const llm = new ChatOpenAI(withLangchain ("gpt-4o-mini", apiKey, heliconeApiKey, heliconeBaseLoggingUrl, accountAddress, agentRequest, customProperties));
340340 *
341341 * @param model - The OpenAI model to use (e.g., "gpt-4o-mini", "gpt-4")
342342 * @param apiKey - The OpenAI API key
@@ -346,9 +346,9 @@ export function calculateDummySongUsage(): HeliconeResponseConfig['usage'] {
346346 * @param environmentName - The environment name for logging purposes
347347 * @param agentRequest - The agent request for logging purposes
348348 * @param customProperties - Custom properties to add as Helicone headers
349- * @returns Configuration object for ChatOpenAI constructor with Helicone enabled
349+ * @returns Configuration object for ChatOpenAI constructor with logging enabled
350350 */
351- export function withHeliconeLangchain (
351+ export function withLangchain (
352352 model : string ,
353353 apiKey : string ,
354354 heliconeApiKey : string ,
@@ -377,9 +377,9 @@ export function withHeliconeLangchain(
377377}
378378
379379/**
380- * Creates an OpenAI client configuration with Helicone logging enabled
380+ * Creates an OpenAI client configuration with logging enabled
381381 *
382- * Usage: const openai = new OpenAI(withHeliconeOpenAI (apiKey, heliconeApiKey, heliconeBaseLoggingUrl, accountAddress, agentRequest, customProperties));
382+ * Usage: const openai = new OpenAI(withOpenAI (apiKey, heliconeApiKey, heliconeBaseLoggingUrl, accountAddress, agentRequest, customProperties));
383383 *
384384 * @param apiKey - The OpenAI API key
385385 * @param heliconeApiKey - The Helicone API key for logging
@@ -388,9 +388,9 @@ export function withHeliconeLangchain(
388388 * @param environmentName - The environment name for logging purposes
389389 * @param agentRequest - The agent request for logging purposes
390390 * @param customProperties - Custom properties to add as Helicone headers
391- * @returns Configuration object for OpenAI constructor with Helicone enabled
391+ * @returns Configuration object for OpenAI constructor with logging enabled
392392 */
393- export function withHeliconeOpenAI (
393+ export function withOpenAI (
394394 apiKey : string ,
395395 heliconeApiKey : string ,
396396 heliconeBaseLoggingUrl : string ,
@@ -486,23 +486,23 @@ export class ObservabilityAPI extends BasePaymentsAPI {
486486 }
487487
488488 /**
489- * Creates a ChatOpenAI configuration with Helicone logging enabled
489+ * Creates a ChatOpenAI configuration with logging enabled
490490 *
491- * Usage: const llm = new ChatOpenAI(observability.withHeliconeLangchain ("gpt-4o-mini", apiKey, agentRequest, customProperties));
491+ * Usage: const llm = new ChatOpenAI(observability.withLangchain ("gpt-4o-mini", apiKey, agentRequest, customProperties));
492492 *
493493 * @param model - The OpenAI model to use (e.g., "gpt-4o-mini", "gpt-4")
494494 * @param apiKey - The OpenAI API key
495495 * @param agentRequest - The agent request for logging purposes
496496 * @param customProperties - Custom properties to add as Helicone headers (should include agentid and sessionid)
497- * @returns Configuration object for ChatOpenAI constructor with Helicone enabled
497+ * @returns Configuration object for ChatOpenAI constructor with logging enabled
498498 */
499- withHeliconeLangchain (
499+ withLangchain (
500500 model : string ,
501501 apiKey : string ,
502502 startAgentRequest : StartAgentRequest ,
503503 customProperties : CustomProperties ,
504504 ) : ChatOpenAIConfiguration {
505- return withHeliconeLangchain (
505+ return withLangchain (
506506 model ,
507507 apiKey ,
508508 this . heliconeApiKey ,
@@ -515,22 +515,21 @@ export class ObservabilityAPI extends BasePaymentsAPI {
515515 }
516516
517517 /**
518- * Creates an OpenAI client configuration with Helicone logging enabled
518+ * Creates an OpenAI client configuration with logging enabled
519519 *
520- * Usage: const openai = new OpenAI(observability.withHeliconeOpenAI (apiKey, heliconeApiKey, agentRequest, customProperties));
520+ * Usage: const openai = new OpenAI(observability.withOpenAI (apiKey, heliconeApiKey, agentRequest, customProperties));
521521 *
522522 * @param apiKey - The OpenAI API key
523- * @param heliconeApiKey - The Helicone API key for logging
524523 * @param agentRequest - The agent request for logging purposes
525524 * @param customProperties - Custom properties to add as Helicone headers (should include agentid and sessionid)
526- * @returns Configuration object for OpenAI constructor with Helicone enabled
525+ * @returns Configuration object for OpenAI constructor with logging enabled
527526 */
528- withHeliconeOpenAI (
527+ withOpenAI (
529528 apiKey : string ,
530529 agentRequest : StartAgentRequest ,
531530 customProperties : CustomProperties ,
532531 ) : OpenAIConfiguration {
533- return withHeliconeOpenAI (
532+ return withOpenAI (
534533 apiKey ,
535534 this . heliconeApiKey ,
536535 this . heliconeBaseLoggingUrl ,
0 commit comments