By default, Oxy uses gpt-4o 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-4o model to the global config.

~/.config/oxyconfig.yml
...
models:
  - name: openai-4o
    vendor: openai
    key_var: # your openai api key goes here
    model_ref: gpt-4o
...
2

Update agent's model config

Update agent’s model config:

agents/agent.yml
model: openai-4o