Azure / azure-functions-openai-extension

An extension that adds support for Azure OpenAI/ OpenAI bindings in Azure Functions for LLM (GPT-3.5-Turbo, GPT-4, etc)
MIT License
80 stars 29 forks source link

Updating Python samples to use newest library version #85

Closed hallvictoria closed 5 months ago

hallvictoria commented 5 months ago

The decorators are a new change only in version azure-functions1.20.0b2 and above. The version brought in from core tools is older, so PYTHON_ISOLATE_WORKER_DEPENDENCIES=1 is necessary to pull from the user's azure-functions.

These changes add PIWD=1 to the local.settings.json file and specifies the specific version of azure-functions needed in the requirements.txt file. For sample READMEs, the steps are updated to run pip install -r requirements.txt so that this version of the library is installed.

This can be removed when there's a core tools release with the worker bringing a library version of 1.20.0b2 or above, but no ETA for that right now.

Fixes https://github.com/Azure/azure-functions-openai-extension/issues/82