Support for Custom Endpoints
Resolved 💬 3 comments Opened Aug 8, 2025 by wklimowicz Closed Nov 28, 2025
I want to use codex with an endpoint that doesn't end with /chat/completions. For example the default endpoint on Databricks is /invocations. The code below works, but as far as I can tell there's no way of getting codex working with this endpoint at the moment:
curl -X POST "https://adb-12345678910.1.azuredatabricks.net/serving-endpoints/databricks-llama-4-maverick/invocations" \
-H "Authorization: Bearer $DATABRICKS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"messages": [{"role": "user", "content": "test"}]}'
LibreChat have had a similar issue, and they solved it by adding a directEndpoint and titleMessageRole setting. I'm not sure what the most elegant way to implement this is, but it would be nice if Databricks endpoints were supported.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗