Portkey-AI / portkey-node-sdk

Build reliable, secure, and production-ready AI apps easily.
https://portkey.ai/docs
22 stars 8 forks source link

Allow new embeddings params in node SDK #29

Closed VisargD closed 8 months ago

VisargD commented 8 months ago

OpenAI has announced a new param named dimensions. But it is not a part of EmbeddingsBody interface of the SDK. Due to this, it might throw a compile error for TS environments. Apart from this, encoding_format is also missing from the interface.

dosubot[bot] commented 8 months ago

🤖

It's great to see your interest in improving the SDK! Your proposed changes to include the new dimensions param and encoding_format in the EmbeddingsBody interface would be valuable for TypeScript users. We encourage you to go ahead and create a pull request with your proposed changes. Your contribution will be much appreciated by the community. Thank you for considering this improvement!


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.