Skip to content

Commit 65a6a72

Browse files
committed
fix format
1 parent 4183aec commit 65a6a72

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

notebook/agentchat_microsoft_fabric.ipynb

+13-6
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,17 @@
113113
}
114114
],
115115
"source": [
116-
"import autogen\n",
117116
"import types\n",
117+
"\n",
118118
"import httpx\n",
119119
"from synapse.ml.fabric.credentials import get_openai_httpx_sync_client\n",
120120
"\n",
121+
"import autogen\n",
122+
"\n",
121123
"http_client = get_openai_httpx_sync_client()\n",
122-
"http_client.__deepcopy__ = types.MethodType(lambda self, memo: self, http_client) # https://microsoft.github.io/autogen/docs/topics/llm_configuration#adding-http-client-in-llm_config-for-proxy\n",
124+
"http_client.__deepcopy__ = types.MethodType(\n",
125+
" lambda self, memo: self, http_client\n",
126+
") # https://microsoft.github.io/autogen/docs/topics/llm_configuration#adding-http-client-in-llm_config-for-proxy\n",
123127
"\n",
124128
"config_list = [\n",
125129
" {\n",
@@ -439,6 +443,7 @@
439443
],
440444
"source": [
441445
"import tempfile\n",
446+
"\n",
442447
"from autogen.coding import LocalCommandLineCodeExecutor\n",
443448
"\n",
444449
"# Create a temporary directory to store the code files.\n",
@@ -484,8 +489,10 @@
484489
" human_input_mode=\"NEVER\",\n",
485490
" max_consecutive_auto_reply=5,\n",
486491
" retrieve_config={\n",
487-
" \"docs_path\": [\"https://learn.microsoft.com/en-us/fabric/get-started/microsoft-fabric-overview\", \n",
488-
" \"https://learn.microsoft.com/en-us/fabric/data-science/tuning-automated-machine-learning-visualizations\"],\n",
492+
" \"docs_path\": [\n",
493+
" \"https://learn.microsoft.com/en-us/fabric/get-started/microsoft-fabric-overview\",\n",
494+
" \"https://learn.microsoft.com/en-us/fabric/data-science/tuning-automated-machine-learning-visualizations\",\n",
495+
" ],\n",
489496
" \"chunk_token_size\": 2000,\n",
490497
" \"model\": config_list[0][\"model\"],\n",
491498
" \"vector_db\": \"chroma\", # to use the deprecated `client` parameter, set to None and uncomment the line above\n",
@@ -2869,10 +2876,10 @@
28692876
}
28702877
],
28712878
"source": [
2879+
"import flaml.visualization as fviz\n",
2880+
"from flaml import AutoML\n",
28722881
"from sklearn.datasets import fetch_california_housing\n",
28732882
"from sklearn.model_selection import train_test_split\n",
2874-
"from flaml import AutoML\n",
2875-
"import flaml.visualization as fviz\n",
28762883
"\n",
28772884
"# Load the California housing data and split it into train and test sets\n",
28782885
"housing = fetch_california_housing()\n",

0 commit comments

Comments
 (0)