added support for openrouter#30
added support for openrouter#30Guido1Alessandro1Trevisan wants to merge 3 commits intobrowser-use:mainfrom
Conversation
basically it's good, just needs a little cleanup and maybe a test or two |
|
@pyoneerC The code now checks the key using os.getenv and returns a single error message (instead of two) if the key is set to None. I added a brief note in the Openrouter class to explain its purpose. I tested the code for cases where one key is missing or both are missing, but I feel like adding a test for a missing key might be overkill. Should I perform the test when instantiating the class or when running the CLI command? |
Added support for any llm by subclassing ChatOpenAI.