Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 1.05 KB

MODELS.md

File metadata and controls

50 lines (31 loc) · 1.05 KB

Endpoints/Models

Model object

OpenAI reference

  • id - string
  • created - integer - Not supported
  • object - string
  • owned_by - string - Not supported
  • aliases - array of strings - LLM addition
  • can_stream - boolean - LLM addition

GET /v1/models

OpenAI reference

Returns

A list of model objects.

Example

> curl http://localhost:8080/v1/models
{"object":"list","data":[{"id":"gpt-3.5-turbo","object":"model","aliases":["3.5","chatgpt"],"can_stream":true},...]}

GET /v1/models/{model}

OpenAI reference

Path parameters

  • model - string - Required

Returns

The model object matching the specified id or alias

Example

> curl http://localhost:8080/v1/models/gpt-4
{"id":"gpt-4","object":"model","can_stream":true}

DELETE /v1/models/{model}

Not supported