Open bmerkle opened 1 month ago
👋 Thanks for contributing @bmerkle! We will review the issue and get back to you soon.
We have hardcoded some of these values to make sure the course is operational through any of the changes. Would need to investigate / test to see if just relying on the latest values has any effect on the code.
Describe the bug Possible improvements for the handling of api_version in *.py files
I could contribute a patch to improve the handling of api_version. Open questions:
To Reproduce Please see the example report C:\work\microsoft\generative-ai-for-beginners\06-text-generation-apps\python\aoai-app-recipe.py (1 hit) Line 12: api_version = "2023-10-01-preview" C:\work\microsoft\generative-ai-for-beginners\06-text-generation-apps\python\aoai-app.py (1 hit) Line 13: api_version = "2023-05-15" C:\work\microsoft\generative-ai-for-beginners\06-text-generation-apps\python\aoai-history-bot.py (1 hit) Line 12: api_version = "2023-10-01-preview" C:\work\microsoft\generative-ai-for-beginners\06-text-generation-apps\python\aoai-study-buddy.py (1 hit) Line 12: api_version = "2023-10-01-preview" C:\work\microsoft\generative-ai-for-beginners\08-building-search-applications\scripts\transcript_enrich_embeddings.py (1 hit) Line 30: openai.api_version = "2023-05-15" C:\work\microsoft\generative-ai-for-beginners\08-building-search-applications\scripts\transcript_enrich_speaker.py (1 hit) Line 41: openai.api_version = "2023-07-01-preview" C:\work\microsoft\generative-ai-for-beginners\08-building-search-applications\scripts\transcript_enrich_summaries.py (1 hit) Line 30: openai.api_version = "2023-07-01-preview" C:\work\microsoft\generative-ai-for-beginners\09-building-image-applications\python\aoai-app-variation.py (1 hit) Line 14: api_version = "2023-12-01-preview", C:\work\microsoft\generative-ai-for-beginners\09-building-image-applications\python\aoai-app.py (1 hit) Line 16: api_version = "2023-12-01-preview", C:\work\microsoft\generative-ai-for-beginners\09-building-image-applications\python\aoai-solution.py (1 hit) Line 16: api_version = "2023-12-01-preview",
Expected behavior