v2-mock-openai-models.yaml 786 B

12345678910111213141516171819202122232425
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v2-mock-openai-models.yaml
  2. get:
  3. summary: '模拟 Models API'
  4. tags:
  5. - mock
  6. operationId: get_api_v2_mock_openai_models
  7. description: 实现:`MockOpenAIController@models`
  8. responses:
  9. 200:
  10. description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。'
  11. content:
  12. application/json:
  13. schema:
  14. type: object
  15. properties:
  16. ok:
  17. type: boolean
  18. message:
  19. type: string
  20. data:
  21. type: object
  22. 401:
  23. $ref: '../../main.yaml#/components/responses/Unauthorized'
  24. 422:
  25. $ref: '../../main.yaml#/components/responses/ValidationError'