Status: [UNTESTED] Endpoints found: http://127.0.0.1:6656/v1/models http://127.0.0.1:6656/v1/models` Source: https://github.com/abinashstack/omp-aicore # omp-aicore A small local HTTP proxy that lets `omp` — or any client speaking native Anthropic / OpenAI-compat APIs — target **SAP AI Core** deployments transparently. You point omp's Anthropic client at `http://127.0.0.1:6656`, and every request lands on your AI Core tenant instead of `api.anthropic.com`. No shim code inside omp; nothing to fork. **Status:** works on macOS, Linux, and Windows. Standard-library Python 3.9+. No `pip install`. No Docker. --- ## What this actually does ``` omp ── HTTP (Anthropic Messages / OpenAI-compat) ──► aicore-proxy ──► SAP AI Core (this repo) (your tenant) ``` The proxy: 1. Speaks three request shapes on `localhost`: - `POST /v1/messages` — Anthropic Messages API (native SSE, incl. `event:` lines) - `POST /v1/chat/completions` — OpenAI-compat chat - `POST /v1/embeddings` — OpenAI-compat embeddings 2. Looks up the requested `model` in a config file, resolving it to an AI Core `deployment_id` + `resource_group`. 3. Grabs an XSUAA bearer token (cached, auto-refresh) and re-issues the request to AI Core's `/v2/inference/deployments/{id}/…` endpoint. 4. For Anthropic streaming, **injects `event: ` lines** into the SSE stream because AI Core inherits Bedrock's `data:`-only convention — without this, native Anthropic SDKs (omp's Foundry client included) fail with `stream envelope error: stream ended before message_start`. That's the whole thing. ~500 lines of Python, no dependencies. --- ## Prerequisites - Python **3.9+** on `PATH` (`python3 --version`). - An **SAP AI Core service key JSON** with these fields: - `clientid`, `clientsecret`, `url`, `serviceurls.AI_API_URL` You get this from BTP Cockpit → your AI Core instance → *Service Keys*. - At least one **RUNNING** deployment in AI Core. `discover.py` will find them automatically. --- ## Install ### macOS / Linux ```bash git clone https://gith