Back to Mlflow

README

examples/gateway/openai/README.md

3.12.0579 B
Original Source

Example endpoint configuration for OpenAI

To view an example of OpenAI endpoint configurations, see the configuration example YAML file for OpenAI.

This configuration shows all 3 supported endpoint types: chat, completions, and embeddings.

Setting the OpenAI API Key

An OpenAI API key is required for the configuration. If you haven't already, obtain an OpenAI API key.

With the key, export it to your environment variables. Replace the '...' with your actual API key:

sh
export OPENAI_API_KEY=...