devchat-ai / devchat

Automate your dev tasks with AI-powered scripts, from your IDE's chat panel.
https://www.devchat.ai
Apache License 2.0
349 stars 41 forks source link

Feature: Downgrade model validation severity to warnings #279

Closed yangbobo2021 closed 8 months ago

yangbobo2021 commented 8 months ago

This PR addresses issue #278 by adjusting the model validation severity from an error to a warning level. The modification will allow our system to log warnings instead of errors when there is a discrepancy between the requested and the received model from OpenAI's API.

Changes included:

This change aligns with the proposed solution in the original issue, aiming to improve system resilience and reduce unnecessary disruptions in service due to strict model validation.

By merging this PR, we can expect an improved integration experience with OpenAI's API that gracefully handles model updates and reduces the chance of service interruptions.

Closes devchat-ai/devchat#278.