makepad/platform/script/test
Admin 62d4f31b1e script: Splash VM heaps, isolates and lazy system modules
Every heap ref carries its heap tag, generation checks always on, rooted
async values. Splash isolates get a domain table and curated minimal
preludes; system modules under `mod` expand lazily on first touch. No
wall-clock script caps: isolation and force-stop instead.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-13 12:26:21 +02:00
..
src script: Splash VM heaps, isolates and lazy system modules 2026-10-13 12:26:21 +02:00
Cargo.toml script: Splash VM heaps, isolates and lazy system modules 2026-10-13 12:26:21 +02:00
README.md First 2.0 2026-02-12 14:52:33 +01:00

Makepad Example: ChatGPT

A simple example of a Makepad Framework application that uses its network layer to interact with OpenAI's GPT model.

How to Run

  1. Set up your OpenAI API key:

    • Visit OpenAI's API Key page and follow the instructions to create and retrieve your API key.
    • Note: Using the OpenAI API incurs costs.
  2. Configure the API key as an environment variable:

    export OPENAI_API_KEY=your_openai_api_key
    

    Optionally, you can configure the model and endpoint:

    export OPENAI_MODEL=your_desired_model  # default is "gpt-4o"
    export OPENAI_BASE_URL=your_custom_api_base_url  # default is "https://api.openai.com/v1"
    
  3. Run the application:

    cargo run