Portkey-AI / portkey-node-sdk

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

[Bug]: Export Header and Gateway URL #39

Closed vatsal2210 closed 8 months ago

vatsal2210 commented 8 months ago

Contact Details

No response

What happened?

createHeaders and PORTKEY_GATEWAY_URL seem not to be exported from the index file.

Implemented from the documentation as:

import { PORTKEY_GATEWAY_URL, createHeaders } from 'portkey-ai';

Error message:

Module '"portkey-ai"' has no exported member 'PORTKEY_GATEWAY_URL'.
Module '"portkey-ai"' has no exported member 'createHeaders'

Version

0.1.xx (Default)

Relevant log output

"error":{},"exception":true,"level":"ERROR","message":"uncaughtException: (0 , portkey_ai_1.createHeaders) is not a function\nTypeError: (0 , portkey_ai_1.createHeaders) is not a function\n    at Object.<anonymous> 


### Code of Conduct

- [X] I agree to follow this project's Code of Conduct
dosubot[bot] commented 8 months ago

🤖

Hello @vatsal2210! 👋 I'm Dosu, a friendly bot here to assist you with bugs, answer questions, and guide you on contributing while we wait for a human maintainer to join us. I'm diving into your issue about createHeaders and PORTKEY_GATEWAY_URL not being exported, and I'll get back to you shortly with more information. Hang tight!

vatsal2210 commented 8 months ago

While downloading it from NPM it downloaded the older version which caused an issue. I can see it is exported properly from index.ts file.