Skip to content

Conversation

@palkan
Copy link
Collaborator

@palkan palkan commented May 14, 2025

So I can write my config as follows:

default_gpt: &default_gpt
  service: open_ai
  model: "gpt-4o-mini"
  temperature: 0.5
  api_key: <%= Rails.application.credentials.openai&.api_key %>

development:
  gpt:
    <<: *default_gpt

production:
  gpt:
    <<: *default_gpt

test:
  gpt:
    service: fake_llm

So I can write my config as follows:

```yml
default_gpt: &default_gpt
  service: open_ai
  model: "gpt-4o-mini"
  temperature: 0.5
  api_key: <%= Rails.application.credentials.openai&.api_key %>

development:
  gpt:
    <<: *default_gpt

production:
  gpt:
    <<: *default_gpt

test:
  gpt:
    service: fake_llm
```
Copy link
Contributor

@TonsOfFun TonsOfFun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, I was annoyed that I couldn't do this, much cleaner!

@TonsOfFun TonsOfFun merged commit 2eaa74b into activeagents:main May 15, 2025
2 checks passed
@palkan palkan deleted the patch-1 branch May 15, 2025 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants