hieunhuNo matter what I try, the code does not log to the eventhub, in fact it does not even display the logging.info before. I even removed the if statement to ensure it always hit that code block in in the finally statement. Is there any reason this code execution would not execute or why it would not be shown in the logs:
[Information] Processing OpenAI proxy request
[Information] Request body: {"messages": [{"role": "user", "content": "Tell me a joke"}], "stream": true, "stream_options": {"include_usage": true}}
[Information] Extra args being passed to OpenAI: {"stream_options": {"include_usage": true}}
[Information] HTTP Request: POST https://redacted/openai/deployments/gpt-4o-2024-08-06/chat/completions?api-version=2024-02-01 "HTTP/1.1 200 OK"
[Information] Processing OpenAI proxy request
[Information] Request body: {"messages": [{"role": "user", "content": "Tell me a joke"}], "stream": true, "stream_options": {"include_usage": true}}
[Information] Extra args being passed to OpenAI: {"stream_options": {"include_usage": true}}
[Information] INFO: ::ffff:169.254.129.7:0 - "POST /api/openai/deployments/gpt-4o-2024-08-06/chat/completions?api-version=2024-02-01 HTTP/1.1" 200 OK
[Information] HTTP Request: POST https://redacted/openai/deployments/gpt-4o-2024-08-06/chat/completions?api-version=2024-02-01 "HTTP/1.1 200 OK"
[Information] Executed 'Functions.aoaifn' (Succeeded, Id=ce277664-c1e0-4f09-92bf-d865a49fd4e6, Duration=29449ms)
[Information] INFO: ::ffff:169.254.129.7:0 - "POST /api/openai/deployments/gpt-4o-2024-08-06/chat/completions?api-version=2024-02-01 HTTP/1.1" 200 OK
[Information] Executed 'Functions.aoaifn' (Succeeded, Id=2ef710a7-04ac-4c31-8df6-2eb504648561, Duration=32232ms)