Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.Net: Update AIModelRouter (AzureOpenAI) #9433

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix readme
  • Loading branch information
RogerBarreto committed Oct 25, 2024
commit dfd335cb1d175742f555e750ec89550c82c01017
20 changes: 10 additions & 10 deletions dotnet/samples/Demos/AIModelRouter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ The sample can be configured by using the command line with .NET [Secret Manager
### Using .NET [Secret Manager](https://learn.microsoft.com/en-us/aspnet/core/security/app-secrets)

```powershell
dotnet user-secrets set "OpenAI:ApiKey" "... your api key ... "
dotnet user-secrets set "OpenAI:ChatModelId" ".. Openai chat completion model .. " (default: gpt-4o)
dotnet user-secrets set "AzureOpenAI:Endpoint" "... your api key ... "
dotnet user-secrets set "AzureOpenAI:ChatModelId" ".. Openai chat completion model .. " (default: gpt-4o)
dotnet user-secrets set "AzureOpenAI:ApiKey" "... your api key ..." (default: Authenticate with Azure CLI credential)
dotnet user-secrets set "LMStudio:Endpoint" ".. LMStudio endpoint .. " (default: http://localhost:1234)
dotnet user-secrets set "Ollama:ModelId" ".. Ollama model id .. "
dotnet user-secrets set "Ollama:Endpoint" ".. Ollama endpoint .. " (default: http://localhost:11434)
dotnet user-secrets set "Onnx:ModelId" ".. Onnx model id"
dotnet user-secrets set "Onnx:ModelPath" ".. your Onnx model folder path .."
dotnet user-secrets set "OpenAI:ApiKey" ".. api key .."
dotnet user-secrets set "OpenAI:ChatModelId" ".. chat completion model .." (default: gpt-4o)
dotnet user-secrets set "AzureOpenAI:Endpoint" ".. endpoint .."
dotnet user-secrets set "AzureOpenAI:ChatDeploymentName" ".. chat deployment name .." (default: gpt-4o)
dotnet user-secrets set "AzureOpenAI:ApiKey" ".. api key .." (default: Authenticate with Azure CLI credential)
dotnet user-secrets set "LMStudio:Endpoint" ".. endpoint .." (default: http://localhost:1234)
dotnet user-secrets set "Ollama:ModelId" ".. model id .."
dotnet user-secrets set "Ollama:Endpoint" ".. endpoint .." (default: http://localhost:11434)
dotnet user-secrets set "Onnx:ModelId" ".. model id .."
dotnet user-secrets set "Onnx:ModelPath" ".. model folder path .."
```

## Running the sample
Expand Down
Loading