You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a console window (such as cmd, PowerShell, or Bash), use the `dotnet new` command to create a new console app with the name `azure-openai-quickstart`. This command creates a simple "Hello World" project with a single C# source file: *Program.cs*.
27
+
1. In a console window (such as cmd, PowerShell, or Bash), use the `dotnet new` command to create a new console app with the name `azure-openai-quickstart`. This command creates a simple "Hello World" project with a single C# source file: *Program.cs*.
28
+
29
+
```dotnetcli
30
+
dotnet new console -n azure-openai-assistants-quickstart
31
+
```
28
32
29
-
```dotnetcli
30
-
dotnet new console -n azure-openai-assistants-quickstart
31
-
```
32
-
33
-
Change your directory to the newly created app folder. You can build the application with:
33
+
2. Change your directory to the newly created app folder. You can build the application with:
34
34
35
-
```dotnetcli
36
-
dotnet build
37
-
```
35
+
```dotnetcli
36
+
dotnet build
37
+
```
38
38
39
-
The build output should contain no warnings or errors.
39
+
The build output should contain no warnings or errors.
In our code we are going to specify the following values:
62
-
63
-
|**Name**|**Description**|
64
-
|:---|:---|
65
-
|**Assistant name**| Your deployment name that is associated with a specific model. |
66
-
|**Instructions**| Instructions are similar to system messages this is where you give the model guidance about how it should behave and any context it should reference when generating a response. You can describe the assistant's personality, tell it what it should and shouldn't answer, and tell it how to format responses. You can also provide examples of the steps it should take when answering responses. |
67
-
|**Model**| This is where you set which model deployment name to use with your assistant. The retrieval tool requires `gpt-35-turbo (1106)` or `gpt-4 (1106-preview)` model. **Set this value to your deployment name, not the model name unless it is the same.**|
68
-
|**Code interpreter**| Code interpreter provides access to a sandboxed Python environment that can be used to allow the model to test and execute code. |
69
-
70
-
### Tools
71
-
72
-
An individual assistant can access up to 128 tools including `code interpreter`, as well as any custom tools you create via [functions](../how-to/assistant-functions.md).
2024-03-05 03:38:17 - user: I need to solve the equation `3x + 11 = 14`. Can you help me?
140
-
2024-03-05 03:38:25 - assistant: The solution to the equation \(3x + 11 = 14\) is \(x = 1\).
141
-
```
142
-
143
-
New messages can be created on the thread before re-running, which will see the assistant use the past messages as context within the thread.
144
-
145
201
## Clean up resources
146
202
147
203
If you want to clean up and remove an Azure OpenAI resource, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with it.
0 commit comments