open-webui / pipelines

Pipelines: Versatile, UI-Agnostic OpenAI-Compatible Plugin Framework
MIT License
931 stars 297 forks source link

Fix: Initialize request object, correct typo, and rename parameter in Azure OpenAI Pipe #245

Closed kmishmael closed 2 months ago

kmishmael commented 2 months ago

This PR addresses the issues identified in the Azure OpenAI Pipe code and references #244:

  1. Initialization of Request Object The requests response object r is now initialized to None to prevent a NameError in the exception handling block if an error occurs before r is defined.

  2. Typo Correction The typo in the allowed_params set has been corrected from funcions to functions as referenced in the documentation.

  3. Parameter Renaming: The parameter dataSources has been renamed to data_sources in the allowed_params set as also referenced in the documentation.

justinh-rahb commented 2 months ago

LGTM