Skip to main content

mock_azure_chat_responses

Function mock_azure_chat_responses 

Source
async fn mock_azure_chat_responses(
    app_conf: Data<ApplicationConfiguration>,
    payload: Json<AzureCompletionRequest>,
) -> ControllerResult<String>
Expand description

GET /api/v0/mock-azure/api/projects/test/openai/v1/responses POST /api/v0/mock-azure/api/projects/test/openai/v1/responses

Stands in for the Azure Responses API while the chatbot runs in test mode. Answers with the first scenario in SCENARIOS whose request shape matches, and 400s on a request no scenario answers.