[Bug]: Export Header and Gateway URL
vatsal2210 opened this issue · comments
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
🤖
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!
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.