langchain
langchain copied to clipboard
RFC: Flag to pass openai creds at invocation
If we like this approach i'll add it to all OpenAI wrappers
@dev2049 This works, we'll need to figure out how to handle things for serialization.
why dont we just always pass at invocation?
openai docs make it seem like setting global vars is proper way to do it but i don't feel strongly about that. makes serialization a bit trickier but that's something we'll have to reckon with anyways.
so mainly just didn't want to rock the boat too much (in case there was a legit reason to not pass at invocation i wasn't aware of)