Skip to content

openai.chat.completions.parse is not working with latest newrelic version 13.3.2 #3379

@Jean-CharlesTerrillon

Description

@Jean-CharlesTerrillon

Hello there,
I need your help on new bug spotted this week after newrelic dependency upgrade.

After upgrading from "newrelic": "13.2.1" to "newrelic": "13.3.2", OpenAI SDK is broken well calling openai.chat.completions.parse(input);

Error message & stack related to OpenAI SDK

TypeError: this._client.chat.completions.create(...)._thenUnwrap is not a function
    at Completions.parse

openai.chat.completions.create(input) still working

Description

With OpenAI versions 5.21.0 or 5.19.1 => both works with NewRelic 13.2.1 version
It works also with 13.3.2 when NewRelic is disabled (in dev environment for example)

Expected Behavior

No matter when calling this function

[NOTE]: NR Log : https://onenr.io/0qQa7P0a6R1

Steps to Reproduce

Upgrade newrelic dependency to reproduce

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done: Issues recently completed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions