The node supports the OpenAI JSON format. If you have an OpenAI-based agent or application, you simply need to replace the api.openai.com
URL in your app with the node's public URL.
curl -X POST /v1/chat/completions \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"messages":[{"role":"system", "content": "You are a helpful assistant."}, {"role":"user", "content": "Where is Paris?"}]}'
Replace OpenAI configuration in your app with the following.
Config option | Value |
---|
Node information
Attribute | Value |
---|