--- title: MicroJulia emoji: 🏛️ colorFrom: purple colorTo: blue sdk: docker app_port: 7860 pinned: false license: mit tags: - julia - gpt - philosophy - openai-compatible - character-level --- # MicroJulia A GPT-2 style transformer trained on classical philosophy texts, implemented in Julia with Flux.jl. Serves an OpenAI-compatible API. ## Endpoints - `GET /` — Health check and model info - `GET /v1/models` — List available models - `POST /v1/chat/completions` — Generate text (supports streaming) ## Usage ```bash curl -X POST https://your-space.hf.space/v1/chat/completions \ -H "Content-Type: application/json" \ -d '{"messages": [{"role": "user", "content": "hello"}], "stream": true}' ```