ChatOpenAI class, which supports custom base URL and headers.
See it in the example below.
Browser Use currently modifies the message history in-place rather than appending, which is not optimal for caching. Try our custom fork which reworks message history to be append-only, giving higher cache hit rates.