It's always been possible to change the API base in the LangChain model wrappers However, the model wrappers do a lot of handy things like token management, which rely on tokenizers that by default we look up in tiktoken We look this up based on model name