- OpenAI models now use the internal
self.get_key()mechanism, which means they can be used from Python code in a way that will pick up keys that have been configured usingllm keys setor theOPENAI_API_KEYenvironment variable. #552. This code now works correctly:import llm print(llm.get_model("gpt-4o-mini").prompt("hi"))
- New documented API methods:
llm.get_default_model(),llm.set_default_model(alias),llm.get_default_embedding_model(alias),llm.set_default_embedding_model(). #553 - Support for OpenAI's new o1 family of preview models,
llm -m o1-preview "prompt"andllm -m o1-mini "prompt". These models are currently only available to tier 5 OpenAI API users, though this may change in the future. #570