Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metadata should be typed as Record<string, string> #1086

Open
1 task done
danilofuchs opened this issue Sep 18, 2024 · 0 comments
Open
1 task done

metadata should be typed as Record<string, string> #1086

danilofuchs opened this issue Sep 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@danilofuchs
Copy link

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

  • 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 danilofuchs added the bug Something isn't working label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant