By default, Oxy uses gpt-4.1 from OpenAI.

If you want to use a different model, you can update the model config in config.yml file.

1

Add model config

Add model config into config.yml file

Below is an example of how to add gpt-4.1 model to the global config.

config.yml
...
models:
  - name: openai-4.1
    vendor: openai
    key_var: # your openai api key goes here
    model_ref: gpt-4.1
...
2

Update agent's model config

Update agent’s model config:

agents/agent.yml
model: openai-4.1