Skip to content

Commit

Permalink
UX Update
Browse files Browse the repository at this point in the history
  • Loading branch information
QilongTang committed Mar 12, 2024
1 parent 089ee4f commit b5a7b4a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions src/DynamoAssistantViewExtension/DynamoAssistantWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
VerticalAlignment="Stretch">

<Grid.RowDefinitions>
<RowDefinition Height="5*"/>
<RowDefinition Height="6*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>

Expand Down Expand Up @@ -74,7 +74,7 @@

<Button
Content="Tell me what this graph does"
Width="250"
Width="200"
Height="50"
Background="#2d2d2d"
Foreground="White"
Expand All @@ -85,7 +85,7 @@
Click="DescribeGraphButton_Click"/>
<Button
Content="Generate annotations for me"
Width="250"
Width="200"
Height="50"
Background="#2d2d2d"
Foreground="White"
Expand All @@ -95,7 +95,7 @@
Click="MakeNoteButton_Click"/>
<Button
Content="Make groups for me"
Width="250"
Width="200"
Height="50"
Background="#2d2d2d"
Foreground="White"
Expand All @@ -106,7 +106,7 @@
Click="MakeGroupButton_Click"/>
<Button
Content="Optimize my graph for me"
Width="250"
Width="200"
Height="50"
Background="#2d2d2d"
Foreground="White"
Expand All @@ -117,7 +117,7 @@
Click="OptimizeGraphButton_Click"/>
<Button
Content="Help me create a graph"
Width="250"
Width="200"
Height="50"
Background="#2d2d2d"
Foreground="White"
Expand All @@ -127,7 +127,7 @@
Padding="10"/>
<Button
Content="Show me what's new in Dynamo"
Width="250"
Width="200"
Height="50"
Background="#2d2d2d"
Foreground="White"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class DynamoAssistantWindowViewModel : NotificationObject, IDisposable
// Chat GPT related fields
private readonly OpenAIAPI chatGPTClient;
private readonly Conversation conversation;
private static readonly string apikey = "Your API Key";
private static readonly string apikey = "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";

Check notice on line 25 in src/DynamoAssistantViewExtension/DynamoAssistantWindowViewModel.cs

View check run for this annotation

DynamoDS Chorus / security/gitleaks

openai-api-key

OpenAI API Key

// Chat GPT pre instruction fields
// A set of instructions to prepare GPT to describe Dynamo graph better
Expand Down Expand Up @@ -68,7 +68,7 @@ public DynamoAssistantWindowViewModel(ReadyParams p)
chatGPTClient = new OpenAIAPI(new APIAuthentication(apikey));
// ChatGPT lets you start a new chat.
conversation = chatGPTClient.Chat.CreateConversation();
conversation.Model = Model.GPT4;
conversation.Model = Model.GPT4_Turbo;
// Adjust this value for more or less "creativity" in the response
conversation.RequestParameters.Temperature = 0.1;
// Display a welcome message
Expand Down

0 comments on commit b5a7b4a

Please sign in to comment.