MagnivOrg / prompt-layer-library

🍰 PromptLayer - Maintain a log of your prompts and OpenAI API requests. Track, debug, and replay old completions.
https://www.promptlayer.com
Apache License 2.0
503 stars 46 forks source link

Missing arguments, unable to use with langchain #17

Closed aseem2625 closed 1 year ago

aseem2625 commented 1 year ago

OpenAi has configurations as 2nd argument while PromptLayer has just one.

https://github.com/hwchase17/langchainjs/blob/main/langchain/src/llms/openai.ts#L135

https://github.com/hwchase17/langchainjs/blob/main/langchain/src/llms/openai.ts#L400

My main use case is to use for performance analytics, prompt versioning and prompt improving based on user feedback.

I am using configuration for other tool in OpenAI call.

Jped commented 1 year ago

The LangChain promptlayer TS implementation is a bit behind, we are working to get it up to speed.