API Documentation
Chat API
Description
The interface parameters and response format are consistent with the openai api
Interface address changed to
https://api.grsai.com
Original interface
https://api.openai.com/v1/chat/completions
Changed to
https://api.grsai.com/v1/chat/completions
Example
The following is a simple example
Parameter description
model(required)
Type:
stringExample:
"gpt-4o-mini"Description:
Model "gpt-4o-mini"
stream(required)
Type:
booleanExample:
trueDescription:
Whether to stream response
messages(required)
Type:
arrayExample:
[{"role": "user", "content": "Hello!"}]Description:
Dialog context information
