Repository navigation
Replies: 2 comments 1 reply
|
You're right to expect that to work. For now, you can define the context separately and pass it to the agent: # config/initializers/custom_ai_context.rb
CustomAIContext = RubyLLM.context do |config|
config.openai_api_key = ENV.fetch('CUSTOM_AI_API_KEY')
config.openai_api_base = ENV.fetch('CUSTOM_AI_API_BASE')
end
# Inside MyCustomAgent
context CustomAIContextI've implemented the block form locally and updated the docs with both approaches. It's not released yet, but your original |
0 replies
|
Thanks for the answer. do you want me to create a proper issue :) |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I can create a custom context that connects to a custom openai compatible endpoint.
I tried to create an Agent configured to connect to a specific openai compatible custom endpoint.
What am I doing wrong?
All reactions