Skip to content

Add DaoXE code interpreter examples (JS + Python) - #108

Open
seven7763 wants to merge 1 commit into
e2b-dev:mainfrom
seven7763:feat/daoxe-code-interpreter
Open

Add DaoXE code interpreter examples (JS + Python)#108
seven7763 wants to merge 1 commit into
e2b-dev:mainfrom
seven7763:feat/daoxe-code-interpreter

Conversation

@seven7763

Copy link
Copy Markdown

Summary

Adds cookbook examples that run the E2B Code Interpreter with DaoXE as the LLM backend.

  • TypeScript: examples/daoxe-code-interpreter-js (OpenAI Node SDK + custom base URL)
  • Python notebook: examples/daoxe-code-interpreter-python
  • README table: DaoXE row under LLM providers

Why 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:

https://daoxe.com/v1
const client = new OpenAI({
  apiKey: process.env.DAOXE_API_KEY,
  baseURL: 'https://daoxe.com/v1',
})

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 baseURL migration path so it stays consistent with existing OpenAI-style cookbook entries.

Account / model IDs

  • Model IDs come from the contributor’s DaoXE account catalog via DAOXE_MODEL (no hardcoded public model list).
  • Keys stay in .env / .env.template only.

Availability note

DaoXE is not offered in mainland China. READMEs call this out so contributors pick account-visible models and regions correctly.

Test plan

  • Copy .env.template.env and set E2B_API_KEY, DAOXE_API_KEY, DAOXE_MODEL
  • JS: cd examples/daoxe-code-interpreter-js && npm i && npm start
  • Python: open daoxe_code_interpreter.ipynb, install deps cell, run main()
  • Confirm the model issues an execute_python tool call and the E2B sandbox executes it
  • Optional chart file height_distribution.png may be written when the model returns a plot

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.
@cla-bot

cla-bot Bot commented Jul 14, 2026

Copy link
Copy Markdown

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'

@seven7763

Copy link
Copy Markdown
Author

I have signed the CLA at https://e2b.dev/docs/cla (or will complete browser signing if not yet on file).

@seven7763

Copy link
Copy Markdown
Author

I have signed the CLA at https://e2b.dev/docs/cla. Please re-check CLA status when ready.

@seven7763

Copy link
Copy Markdown
Author

I have signed the CLA at https://cla.e2b.dev/ (Accepted as @seven7763). Please re-check CLA status.

@seven7763

Copy link
Copy Markdown
Author

I have signed the CLA

@seven7763

Copy link
Copy Markdown
Author

@cla-bot check

@cla-bot cla-bot Bot added the cla-signed label Jul 16, 2026
@cla-bot

cla-bot Bot commented Jul 16, 2026

Copy link
Copy Markdown

The cla-bot has been summoned, and re-checked this pull request!

@seven7763

Copy link
Copy Markdown
Author

CLA check is green on this PR now (verification/cla-signed pass).

Happy to adjust the JS/Python examples if anything should follow a different cookbook style. Thanks for the review when you have a chance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant