mirror of
https://github.com/open-webui/pipelines.git
synced 2026-07-21 10:05:26 -04:00
[PR #245] [MERGED] Fix: Initialize request object, correct typo, and rename parameter in Azure OpenAI Pipe #354
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/pipelines/pull/245
Author: @kmishmael
Created: 9/1/2024
Status: ✅ Merged
Merged: 9/2/2024
Merged by: @justinh-rahb
Base:
main← Head:main📝 Commits (1)
0303263fix: initialize request object, correct typo, and rename parameter📊 Changes
1 file changed (+4 additions, -2 deletions)
View changed files
📝
examples/pipelines/providers/azure_openai_pipeline.py(+4 -2)📄 Description
This PR addresses the issues identified in the Azure OpenAI Pipe code and references #244:
Initialization of Request Object
The requests response object
ris now initialized toNoneto prevent aNameErrorin the exception handling block if an error occurs beforeris defined.Typo Correction
The typo in the
allowed_paramsset has been corrected fromfuncionstofunctionsas referenced in the documentation.Parameter Renaming:
The parameter
dataSourceshas been renamed todata_sourcesin theallowed_paramsset as also referenced in the documentation.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.