CoolFace
Apppublic

hoanghonghuy/xml-tool-adapter

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
App README

Zed XML Tool Bridge (OpenAI-compatible)

This Space exposes an OpenAI-compatible /v1/chat/completions endpoint. It forwards requests to an upstream OpenAI-compatible gateway (your ProxyApi), while enforcing XML-based tool calling for selected models.

Environment variables (Space Secrets)

  • UPSTREAMBASEURL (required): e.g. https://hoanghonghuy-proxy-api.hf.space/v1
  • UPSTREAMAPIKEY (optional): if your upstream requires a bearer key
  • CLIENTAPIKEY (optional): if set, this server requires Authorization: Bearer <CLIENT_API_KEY>
  • XML_MODELS (optional): comma-separated list, default: gemini-3-pro-preview
  • LISTEN_ADDR (optional): default :7860

Zed config

Set OpenAI-compatible api_url to: https://<this-space>.hf.space/v1 and set API key to CLIENTAPIKEY (if enabled).