langchain-ai / langchain

🦜🔗 Build context-aware reasoning applications
https://python.langchain.com
MIT License
92.97k stars 14.93k forks source link

Raise a warning when using OpenAI and Azure OpenAI Completion API #11159

Closed mspronesti closed 8 months ago

mspronesti commented 1 year ago

Feature request

It looks like most of the models of the Completion API have been marked as legacy and will be discontinued in early 2024. On Azure OpenAI I already no longer have access to non-chat models and I can't use the completion API with the newest get-35-turbo and gpt4 (0613).

Shall we raise a warning to the user when instantiating langchain.llms.OpenAI and langchain.llms.AzureOpenAI with deprecated models?

References:

Your contribution

I can contribute to this if the feature makes sense.

dosubot[bot] commented 9 months ago

Hi, @mspronesti

I'm helping the LangChain team manage their backlog and am marking this issue as stale. The issue you raised requests the addition of a warning when using deprecated models from the OpenAI and Azure OpenAI Completion API. The author proposes adding a warning when instantiating certain models to alert users of their deprecation. This request is prompted by the discontinuation of legacy models and the unavailability of non-chat models on Azure OpenAI. Since there hasn't been any further activity or comments on the issue, I wanted to check if this is still relevant to the latest version of the LangChain repository. If it is, please let the LangChain team know by commenting on the issue. Otherwise, feel free to close the issue yourself or the issue will be automatically closed in 7 days.

Thank you for your understanding and cooperation.