Skip to main content

3-line wrap (Python)

embeddings, files, audio, etc. fall through unchanged. Only chat.completions.create(...) is rerouted through AGCMS.

3-line wrap (TypeScript)

Without an SDK (base_url override)

The official openai client supports a base_url argument. Point it at AGCMS and use your AGCMS key in place of the OpenAI key:
The AGCMS gateway then forwards to OpenAI using the upstream key configured on your tenant.