skip to Main Content

Import json file on python

I try to import a json file on python with : with open('C:/Users/angel/message.json', 'r') as file: data = json.load(file) I have the error : FileNotFoundError Traceback (most recent call last) Cell In[1], line 1 ----> 1 with open('C:/Users/angel/message.json', 'r') as…

VIEW QUESTION

How can I write a POST request for Azure OpenAI that uses structured output?

I want to write a POST request for Azure OpenAI that uses structured output. https://azure.microsoft.com/en-us/blog/announcing-a-new-openai-feature-for-developers-on-azure/ says: Here’s an example API call to illustrate how to use Structured Outputs: { "model": "gpt-4o-2024-08-06", "prompt": "Generate a customer support response", "structured_output": { "schema":…

VIEW QUESTION

Amazon web services – How do I make JWT read "n" as a new line instead of a literal in a container on EC2?

I have the key -----BEGIN PRIVATE KEY-----nnwb945yptghjs8hg45954hg945hn/gsnohuoi5gh549usgh5498gh4p95sognosgn54ui3ghns459uigh54g98s45ghy4598ngkeot84n-----END PRIVATE KEY----- (for illustration purposes) and when running jws.sign() on my home computer it works as expected. However, when I store the secret in AWS Secrets Manager and retrieve it in a container…

VIEW QUESTION
Back To Top
Search