stuartleeks / aoai-simulated-api

An exploration into creating a simulated API implementation for Azure OpenAI (AOAI)
MIT License
11 stars 4 forks source link

Document Intelligence - generate dynamic response #2

Closed mcollier closed 6 months ago

mcollier commented 6 months ago

This pull request primarily focuses on improving the src/aoai-simulated-api/generator/_generator_doc_intell.py file. The changes include refactoring the doc_intelligence_analyze and doc_intelligence_analyze_result functions to handle a broader range of requests, replacing hardcoded values with dynamic parameters, and introducing new functions to generate response content. Additionally, the .vscode/launch.json file was updated to include more worker and timeout settings.

This is a start, as additional functionality is needed to ensure an accurate response for all model options.

Here are the key changes:

Changes to the .vscode/launch.json file:

Changes to the src/aoai-simulated-api/generator/_generator_doc_intell.py file:

Refactoring and improvements:

New functions:

Removed: