|
20 | 20 | }, |
21 | 21 | { |
22 | 22 | "cell_type": "code", |
23 | | - "execution_count": 31, |
| 23 | + "execution_count": null, |
24 | 24 | "metadata": {}, |
25 | | - "outputs": [ |
26 | | - { |
27 | | - "name": "stdout", |
28 | | - "output_type": "stream", |
29 | | - "text": [ |
30 | | - "Requirement already satisfied: openai in /usr/local/lib/python3.11/site-packages (1.6.0)\n", |
31 | | - "Requirement already satisfied: anyio<5,>=3.5.0 in /usr/local/lib/python3.11/site-packages (from openai) (4.2.0)\n", |
32 | | - "Requirement already satisfied: distro<2,>=1.7.0 in /usr/local/lib/python3.11/site-packages (from openai) (1.9.0)\n", |
33 | | - "Requirement already satisfied: httpx<1,>=0.23.0 in /usr/local/lib/python3.11/site-packages (from openai) (0.26.0)\n", |
34 | | - "Requirement already satisfied: pydantic<3,>=1.9.0 in /usr/local/lib/python3.11/site-packages (from openai) (2.5.2)\n", |
35 | | - "Requirement already satisfied: sniffio in /usr/local/lib/python3.11/site-packages (from openai) (1.3.0)\n", |
36 | | - "Requirement already satisfied: tqdm>4 in /usr/local/lib/python3.11/site-packages (from openai) (4.66.1)\n", |
37 | | - "Requirement already satisfied: typing-extensions<5,>=4.7 in /usr/local/lib/python3.11/site-packages (from openai) (4.9.0)\n", |
38 | | - "Requirement already satisfied: idna>=2.8 in /usr/local/lib/python3.11/site-packages (from anyio<5,>=3.5.0->openai) (3.6)\n", |
39 | | - "Requirement already satisfied: certifi in /usr/local/lib/python3.11/site-packages (from httpx<1,>=0.23.0->openai) (2023.11.17)\n", |
40 | | - "Requirement already satisfied: httpcore==1.* in /usr/local/lib/python3.11/site-packages (from httpx<1,>=0.23.0->openai) (1.0.2)\n", |
41 | | - "Requirement already satisfied: h11<0.15,>=0.13 in /usr/local/lib/python3.11/site-packages (from httpcore==1.*->httpx<1,>=0.23.0->openai) (0.14.0)\n", |
42 | | - "Requirement already satisfied: annotated-types>=0.4.0 in /usr/local/lib/python3.11/site-packages (from pydantic<3,>=1.9.0->openai) (0.6.0)\n", |
43 | | - "Requirement already satisfied: pydantic-core==2.14.5 in /usr/local/lib/python3.11/site-packages (from pydantic<3,>=1.9.0->openai) (2.14.5)\n" |
44 | | - ] |
45 | | - } |
46 | | - ], |
| 25 | + "outputs": [], |
47 | 26 | "source": [ |
48 | 27 | "! pip install openai" |
49 | 28 | ] |
|
68 | 47 | }, |
69 | 48 | { |
70 | 49 | "cell_type": "code", |
71 | | - "execution_count": 1, |
| 50 | + "execution_count": null, |
72 | 51 | "metadata": {}, |
73 | | - "outputs": [ |
74 | | - { |
75 | | - "data": { |
76 | | - "text/plain": [ |
77 | | - "True" |
78 | | - ] |
79 | | - }, |
80 | | - "execution_count": 1, |
81 | | - "metadata": {}, |
82 | | - "output_type": "execute_result" |
83 | | - } |
84 | | - ], |
| 52 | + "outputs": [], |
85 | 53 | "source": [ |
86 | 54 | "import os\n", |
87 | 55 | "from openai import AzureOpenAI\n", |
|
128 | 96 | }, |
129 | 97 | { |
130 | 98 | "cell_type": "code", |
131 | | - "execution_count": 7, |
| 99 | + "execution_count": null, |
132 | 100 | "metadata": {}, |
133 | | - "outputs": [ |
134 | | - { |
135 | | - "name": "stdout", |
136 | | - "output_type": "stream", |
137 | | - "text": [ |
138 | | - "Of course! I'd be happy to help you find the perfect bicycle. Let's start by asking a few questions. Are you looking for a bike for leisurely rides, commuting, or off-road adventures?\n" |
139 | | - ] |
140 | | - } |
141 | | - ], |
| 101 | + "outputs": [], |
142 | 102 | "source": [ |
143 | 103 | "chatResponse = chatClient.chat.completions.create(\n", |
144 | 104 | " model=\"completions\",\n", |
|
0 commit comments