Skip to content

Commit

Permalink
update sample
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova committed Oct 29, 2024
1 parent c7bfdac commit e5822ad
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,9 @@ def chat_completion_with_function_call(key, endpoint):


def main():
# There is no need to pass APPLICATIONINSIGHTS_CONNECTION_STRING explicitly,
# as it is read from this environment variable by the configure_azure_monitor function
# It's provided here for clarity.
configure_azure_monitor(connection_string=os.environ["APPLICATIONINSIGHTS_CONNECTION_STRING"])
# Make sure to set APPLICATIONINSIGHTS_CONNECTION_STRING environment variable before running this sample.
# Or pass the value as an argument to the configure_azure_monitor function.
configure_azure_monitor()

try:
endpoint = os.environ["AZURE_AI_CHAT_ENDPOINT"]
Expand Down

0 comments on commit e5822ad

Please sign in to comment.