Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add support for openrouter apis #55

Closed
zhyin307 opened this issue Mar 30, 2025 · 8 comments
Closed

[Feature] Add support for openrouter apis #55

zhyin307 opened this issue Mar 30, 2025 · 8 comments
Assignees
Labels
question Further information is requested webui Issues related to web ui

Comments

@zhyin307
Copy link

@namin @yuxiang-wu @dexhunter @schmidtdominik @jacenko Hosting this project on Google Colab would simplify access for users, allowing them to get started quickly without the need for setup or cloning, thereby saving time and optimizing the project's efficiency. For those encountering issues with their virtual environment or other setup-related challenges. Could you please create a Google Colab notebook and share the link.

@zhyin307 zhyin307 added the enhancement New feature or request label Mar 30, 2025
@dexhunter
Copy link
Member

@zhyin307 If you just want a hosted version, you can try our huggingface example available here

@dexhunter dexhunter added question Further information is requested webui Issues related to web ui and removed enhancement New feature or request labels Mar 30, 2025
@zhyin307
Copy link
Author

@dexhunter Thanks for sharing. However, the API I use for this task includes LLaMA, Qwen, Gemini, and Mistral & not OpenAI or Claude due to resource constraints, oth reasons, etc. I was asking about Colab so we could modify or add support for different API providers, other modifications, etc as needed as i find it more compatible.

@dexhunter
Copy link
Member

@zhyin307 Are you using OpenRouter apis or are you using each one from different providers?

I am asking because if you are using openrouter apis, I can add support at the backend. I don't quite get why adding an example on colab will help with more llms. That being said, if you are using our provided APIs (haven't released yet) then using colab would be viable.

@zhyin307
Copy link
Author

@dexhunter I haven't used OpenRouter APIs before; I operate through different providers. But if you add support at the backend, I'll use OpenRouter then. Appreciate it.

@dexhunter dexhunter changed the title Urgent Request: Add Google Colab Notebook Feature [Feature] Add support for openrouter apis Mar 31, 2025
@dexhunter dexhunter self-assigned this Mar 31, 2025
dexhunter added a commit to dexhunter/aideml that referenced this issue Apr 1, 2025
* Update router to determine api provider
* Add backend for openrouter
* Update webui app
* Update README
* Update requirements for new openai python package
dexhunter added a commit that referenced this issue Apr 1, 2025
* Update router to determine api provider
* Add backend for openrouter
* Update webui app
* Update README
* Update requirements for new openai python package
@dexhunter
Copy link
Member

@zhyin307 I added support for openrouter, an example usage looks like

export OPENAI_API_KEY=<your_key>
export OPENROUTER_API_KEY=<your_key>

aide data_dir="example_tasks/house_prices" goal="Predict the sales price for each house" eval="Use the RMSE metric between the logarithm of the predicted and observed values." agent.steps=10 agent.code.model="mistral/ministral-8b" agent.feedback.model="gpt-4o"

also if you are running llms locally, you can follow instructions here

Will close the issue as completed.

@zhyin307
Copy link
Author

zhyin307 commented Apr 1, 2025

@dexhunter Thank you for adding OpenRouter support. If a ZIP file option were also available in dataset upload section, it would be even better. Appreciate your work though.

@dexhunter
Copy link
Member

@zhyin307 what kind of zip file? Do you mean one compressing the traning and test dataset or something else?

@zhyin307
Copy link
Author

zhyin307 commented Apr 1, 2025

@dexhunter Currently, my zip file(dataset) is of few mb's of size, but I may need compression for larger files of zip file (dataset) in due course of time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested webui Issues related to web ui
Projects
None yet
Development

No branches or pull requests

2 participants