langchain-ai / opengpts

MIT License
6.31k stars 829 forks source link

Enable versioning of API paths #273

Open ptgoetz opened 3 months ago

ptgoetz commented 3 months ago

What?

Prepend something like /api/v1/ to all OpenGPTs API enpoints.

Why?

The OpenGPTs API is pretty much guaranteed to change over time. While the current API is in a very high state of flux, eventually it will stabilize and become a 1.0 release. Adding versioning to API paths early on will make version update/deprecation/removal more manageable.