How to fix an attribute error 'dict' object has no attribute 'cache_control'

Sudipta 20 Reputation points
2024-02-06T06:45:32.7133333+00:00

The requirement is i need to write a code in python which uses gpt 4 model to answer the users question and also on top of it i need to add a blob storage so that whenever an user has to work on pdfs or larger files they can store it in blob and the file then gets processed through the model and gives the required output i have added the blob and uploaded it but while downloading the file i am facing an 'dict' object has no attribute 'cache_control' which says the code is trying to access the attribute cache control on a dict obj but the obj is not the expected type .

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,888 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 27,891 Reputation points Microsoft Vendor
    2024-02-07T00:46:32.25+00:00

    Hi @Sudipta, 

    Welcome to Microsoft Q&A! 

    Your issue is more related to Python development, please report it in Developer Community.

    Thanks for your understanding! 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.  

    0 comments No comments

0 additional answers

Sort by: Most helpful