MCPcopy
hub / github.com/datalab-to/surya / openai_client.py

File openai_client.py

surya/inference/backends/openai_client.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""Shared OpenAI-compatible chat completions client. Used by vllm + llama.cpp.
2
3Both servers expose `/v1/chat/completions` with the same request/response shape,
4so this module is the single point of HTTP contact for both backends.

Callers

nothing calls this directly

Calls 1

get_loggerFunction · 0.90

Tested by

no test coverage detected