Based on the following tutorial: https://cookbook.openai.com/examples/function_calling_with_an_openapi_spec
OpenAPI specification is extracted from the Swagger sample server: https://petstore.swagger.io/, and the solution uses the endpoints exposed here.
- Create a
.env
file in the root-folder - Populate the
.env
file as shown in.env-example
with the Azure OpenAI API-key and URL
Recommend running this in the VsCode Devcontainer provided as it will then be plug-and-play, just remember to set the Python Interpreter in VsCode to the Poetry environment created.