docs: Add AI/ML API example
π Summary
This PR adds support for AI/ML API, an OpenAI-compatible provider offering 300+ models (e.g., DeepSeek, Gemini, ChatGPT), to the E2B Code Interpreter examples.
β What's Included
- π§ͺ
examples/aimlapi-js/: TypeScript example using E2B sandbox + AI/ML API via OpenAI SDK - π§ͺ
examples/aimlapi-python/: Python version usingopenaiande2b-code-interpreter - π Uses a CSV dataset to generate and run Python code (e.g., linear regression)
- π Added
.env.template,README.md, and dependency setup for each variant - π Linked AI/ML API to the providers table in root
README.mdwith proper UTM tracking
Let me know if you'd like the examples styled/formatted differently β happy to iterate!
Thanks. I will be reviewing this over the weekend.
@mishushakov hi! Can i get a review here pls? Thanks!
Hey @mishushakov, thanks for the feedback π
Iβve fixed the issues: β Handled null content from the API so examples donβt crash on filtered outputs. β Updated both Python and TypeScript examples to use the same flow (two prompts: strawberry count + linear regression with data.csv). β Switched to a recent model (openai/gpt-5-chat-latest) instead of gpt-3.5-turbo. β Verified both examples run fine with the same logic and produce consistent results.
Everything works now and the examples are identical across both languages π
@mishushakov @tizkovatereza hi guys! a reminder to check on the PR :)
@mishushakov thanks for the review π Before making the changes, Iβd like to check, does e2b have a Slack for integration discussions? If yes, could you please share an invite/connect to [email protected] (Sergey Nuzhny, DevRel + CM at AIMLAPI). We can follow up with more details there if needed.
@mishushakov let us know if there is any other changes that need to be implemented Let's wrap this up within 1-2 weeks, and roll out the promo