Closed lukestanley closed 1 year ago
It looks correct to me... will look into it
Oh... obviously ... I put the ChatOpenAI as a default into the function declaration, so it initializes during import... I didn't realize that langchain validates this before invoking the LLM...
gonna fix it, it he meantime you can just define any OPENAI_API_KEY in your ENVs ... should work since you are overriding the default settings (your code is invoked later)
I have a fix. Sorting PR now.
It would be best to sort out the code formatting before so the diff is more obvious. Sorry I didn't split it into two commits! https://github.com/ju-bezdek/langchain-decorators/pull/3/files @ju-bezdek
I used Anthropic's big context window to look at your files to quickly suggest the fix: https://gist.github.com/lukestanley/ddfd48489ecb5bc97e4d2bca24ca229f ;)
That's super cool 🤣🚀 gonna review your PR now
fixed in v0.0.3
Maybe I'm using it wrong but there is an error after I try setting the LLM in both ways shown in the README.