Add DaoXE code interpreter examples (JS + Python) - #108
Conversation
Show E2B Code Interpreter with DaoXE's multi-model multi-protocol gateway via OpenAI-compatible base URL https://daoxe.com/v1. Model IDs come from the account catalog; notes cover Anthropic Messages / Claude protocol and that service is not offered in mainland China.
|
We require contributors to sign our Contributor License Agreement, and we don't have @seven7763 on file. You can sign our CLA at https://e2b.dev/docs/cla . Once you've signed, post a comment here that says '@cla-bot check' |
|
I have signed the CLA at https://e2b.dev/docs/cla (or will complete browser signing if not yet on file). |
|
I have signed the CLA at https://e2b.dev/docs/cla. Please re-check CLA status when ready. |
|
I have signed the CLA at https://cla.e2b.dev/ (Accepted as @seven7763). Please re-check CLA status. |
|
I have signed the CLA |
|
@cla-bot check |
|
The cla-bot has been summoned, and re-checked this pull request! |
|
CLA check is green on this PR now ( Happy to adjust the JS/Python examples if anything should follow a different cookbook style. Thanks for the review when you have a chance. |
Summary
Adds cookbook examples that run the E2B Code Interpreter with DaoXE as the LLM backend.
examples/daoxe-code-interpreter-js(OpenAI Node SDK + custom base URL)examples/daoxe-code-interpreter-pythonWhy this fits the cookbook
DaoXE is a multi-model, multi-protocol API gateway. This PR demonstrates the OpenAI-compatible Chat Completions path used by many existing cookbook samples:
DaoXE also supports other protocols (including OpenAI Responses and Anthropic Messages / Claude protocol) and multiple model families. This example only covers the OpenAI SDK + custom
baseURLmigration path so it stays consistent with existing OpenAI-style cookbook entries.Account / model IDs
DAOXE_MODEL(no hardcoded public model list)..env/.env.templateonly.Availability note
DaoXE is not offered in mainland China. READMEs call this out so contributors pick account-visible models and regions correctly.
Test plan
.env.template→.envand setE2B_API_KEY,DAOXE_API_KEY,DAOXE_MODELcd examples/daoxe-code-interpreter-js && npm i && npm startdaoxe_code_interpreter.ipynb, install deps cell, runmain()execute_pythontool call and the E2B sandbox executes itheight_distribution.pngmay be written when the model returns a plot