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

Release/0.1.0 #11

Merged
merged 2 commits into from
May 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
18 changes: 1 addition & 17 deletions ChatRoom/ChatRoom.Client/ChatRoomClientCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,6 @@ namespace ChatRoom.Client;

public class ChatRoomClientCommandSettings : CommandSettings
{
[Description("The room name to create.")]
[CommandOption("-r|--room <ROOM>")]
public string? Room { get; init; } = null;

[Description("The port to listen.")]
[CommandOption("-p|--port <PORT>")]
public int? Port { get; init; } = null;

[Description("Your name in the room")]
[CommandOption("-n|--name <NAME>")]
public string YourName { get; init; } = "User";

[Description("Configuration file")]
[CommandOption("-c|--config <CONFIG>")]
public string? ConfigFile { get; init; } = null;
Expand All @@ -39,15 +27,11 @@ public override async Task<int> ExecuteAsync(CommandContext context, ChatRoomCli
? JsonSerializer.Deserialize<ChatRoomClientConfiguration>(File.ReadAllText(command.ConfigFile))!
: new ChatRoomClientConfiguration();

config.RoomConfig.Room = command.Room ?? config.RoomConfig.Room;
config.RoomConfig.Port = command.Port ?? config.RoomConfig.Port;
config.YourName = command.YourName;

var host = Host.CreateDefaultBuilder()
.UseOrleans(siloBuilder =>
{
siloBuilder
.UseLocalhostClustering(config.RoomConfig.Port)
.UseLocalhostClustering(gatewayPort: config.RoomConfig.Port)
.AddMemoryGrainStorage("PubSubStore")
.ConfigureLogging(logBuilder =>
{
Expand Down
3 changes: 0 additions & 3 deletions ChatRoom/ChatRoom.Client/Program.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using ChatRoom.Client;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Spectre.Console.Cli;

var app = new CommandApp<ChatRoomClientCommand>();
Expand Down
2 changes: 1 addition & 1 deletion eng/MetaInfo.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<VersionPrefix>0.0.9</VersionPrefix>
<VersionPrefix>0.1.0</VersionPrefix>
<Authors>LittleLittleCloud</Authors>
<RepositoryType>git</RepositoryType>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
Expand Down

This file was deleted.

6 changes: 1 addition & 5 deletions website/get_start/install_openai_agent.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
## Installation
To install `ChatRoom.OpenAI` agent, run the following command:
```bash
dotnet tool install --global ChatRoom.OpenAI
```

After the agent is installed, you can start the agent with the following command:
```bash
chatroom-openai
```

## Configuration
You can configure `ChatRoom.OpenAI` agent by creating a configuration file and pass it to the agent. Below is an example of a configuration file for the agent:

Expand Down
2 changes: 1 addition & 1 deletion website/get_start/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
href: use_client.md

- name: Install agents
href: install_agents.md
href: Install_agents.md

- name: Install OpenAI agent
href: install_openai_agent.md
File renamed without changes.
14 changes: 14 additions & 0 deletions website/release_notes/toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
- name: 0.0.8-0.1.0
href: 0_0_8-0_1_0.md

- name: Configure client
href: configure_client.md

- name: Use client
href: use_client.md

- name: Install agents
href: Install_agents.md

- name: Install OpenAI agent
href: install_openai_agent.md