openai-node icon indicating copy to clipboard operation
openai-node copied to clipboard

metadata should be typed as Record<string, string>

Open danilofuchs opened this issue 1 year ago • 0 comments

Confirm this is a Node library issue and not an underlying OpenAI API issue

  • [X] This is an issue with the Node library

Describe the bug

The generated types for metadata field is always unknown

image

This makes it weird to work with: image

A better type would be Record<string, string>

To Reproduce

Install openai 4.61.1

Code snippets

No response

OS

linux

Node version

20

Library version

4.61.1

danilofuchs avatar Sep 18 '24 17:09 danilofuchs