-
Notifications
You must be signed in to change notification settings - Fork 630
Open
Labels
bugdocumentationImprovements or additions to documentationImprovements or additions to documentationsdk/dotnet
Description
I got the following error when using CLI server mode
Unhandled exception. System.ArgumentException: CliUrl is mutually exclusive with UseStdio and CliPath at GitHub.Copilot.SDK.CopilotClient..ctor(CopilotClientOptions options) at Program.<Main>$(String[] args) in C:\Users\zhiyuanliang\Desktop\AI\CopilotDemo\Program.cs:line 44 at Program.<Main>(String[] args)The correct code should look like:
await using var client = new CopilotClient(new CopilotClientOptions
{
CliUrl = $"localhost:{port}",
UseStdio = false
});Metadata
Metadata
Assignees
Labels
bugdocumentationImprovements or additions to documentationImprovements or additions to documentationsdk/dotnet