diff --git a/README.md b/README.md index cbf8b81..a4430cc 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,18 @@ Dependify is a tool to visualize dependencies in your .NET application. You can start dependify in `serve` mode to visualize dependencies in a browser or use the `CLI` if you prefer the terminal. + | Package | Version | Description | | --------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -------------- | | `Dependify.Cli` | [![Nuget](https://img.shields.io/nuget/v/Dependify.Cli.svg)](https://nuget.org/packages/Dependify.Cli) | CLI | | `Dependify.Core` | [![Nuget](https://img.shields.io/nuget/v/Dependify.Core.svg)](https://nuget.org/packages/Dependify.Core) | Core library | | `Dependify.Aspire.Hosting` | [![Nuget](https://img.shields.io/nuget/v/Dependify.Aspire.Hosting.svg)](https://nuget.org/packages/Dependify.Aspire.Hosting) | Aspire support | +Blogs: + +* [Explore .NET application dependencies by using Dependify tool](https://nikiforovall.github.io/dotnet/2024/08/03/dependify.html) +* [Supercharge your Dependify tool with AI chat assistant](https://nikiforovall.github.io/dotnet/2024/08/09/dependify-ai.html) + ## Install ```bash @@ -69,6 +75,10 @@ Dependency Explorer allows you to select the dependencies you want to see. Chat (AI) allows you to ask questions about the dependencies. +![serve-graph-view](./assets/ai-chat.png) + +Here is how to run the Dependify with the OpenAI GPT-4 model. + ```bash dependify serve $dev/cap-aspire/ \ --endpoint https://api.openai.azure.com/ \ diff --git a/assets/ai-chat.png b/assets/ai-chat.png new file mode 100644 index 0000000..2a57b9e --- /dev/null +++ b/assets/ai-chat.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea499e9d8827dba1fe182366f6a7244a404bcda3a04855f0fec4c3fbc6ccb284 +size 104050 diff --git a/samples/aspire-project/aspire-project.AppHost/Program.cs b/samples/aspire-project/aspire-project.AppHost/Program.cs index 03a8fcb..6bb6640 100644 --- a/samples/aspire-project/aspire-project.AppHost/Program.cs +++ b/samples/aspire-project/aspire-project.AppHost/Program.cs @@ -11,7 +11,7 @@ var dependify = builder.AddDependify().ServeFrom("../../../"); -if (useLocalModelParam.Resource.Value.ToString().Equals("true", StringComparison.OrdinalIgnoreCase)) +if (useLocalModelParam.Resource.Value.Equals("true", StringComparison.OrdinalIgnoreCase)) { var modelName = "phi3:mini"; var ollama = builder.AddOllama("ollama").WithDataVolume().AddModel(modelName).WithOpenWebUI(); @@ -26,9 +26,9 @@ // dotnet user-secrets set "Parameters:endpoint" "" dependify.WithAzureOpenAI( - endpointParam.Resource.Value.ToString(), - deploymentNameParam.Resource.Value.ToString(), - apiKeyParam.Resource.Value.ToString() + endpointParam.Resource.Value, + deploymentNameParam.Resource.Value, + apiKeyParam.Resource.Value ); }