| | |
| | | var json = JsonSerializer.Serialize(response.Result, new JsonSerializerOptions(JsonSerializerDefaults.Web)); |
| | | Assert.Contains("gpt-test", json); |
| | | Assert.DoesNotContain("endpoint", json, StringComparison.OrdinalIgnoreCase); |
| | | Assert.DoesNotContain("baseUrl", json, StringComparison.OrdinalIgnoreCase); |
| | | Assert.DoesNotContain("authRef", json, StringComparison.OrdinalIgnoreCase); |
| | | } |
| | | |
| | | [Fact] |
| | |
| | | Assert.True(response.Success); |
| | | var json = JsonSerializer.Serialize(response.Result, new JsonSerializerOptions(JsonSerializerDefaults.Web)); |
| | | Assert.Contains("project-1", json); |
| | | Assert.Contains("ready", json); |
| | | } |
| | | |
| | | [Fact] |
| | |
| | | .ToList()) |
| | | : GetModelsAsync(cancellationToken); |
| | | |
| | | public Task<IReadOnlyList<AiChatProjectSummary>> GetProjectsAsync(LlmPluginRuntimeConfig runtimeConfig, CancellationToken cancellationToken = default) |
| | | => Task.FromResult<IReadOnlyList<AiChatProjectSummary>>( |
| | | public Task<AiChatProjectsResult> GetProjectsAsync(LlmPluginRuntimeConfig runtimeConfig, CancellationToken cancellationToken = default) |
| | | => Task.FromResult(new AiChatProjectsResult |
| | | { |
| | | Status = AiChatProjectStatuses.Ready, |
| | | Projects = |
| | | [ |
| | | new AiChatProjectSummary { Id = "project-1", Name = "Project 1" } |
| | | ]); |
| | | ] |
| | | }); |
| | | |
| | | public Task<AiChatMemoryCapabilities> GetMemoryCapabilitiesAsync(LlmPluginRuntimeConfig runtimeConfig, CancellationToken cancellationToken = default) |
| | | => Task.FromResult(new AiChatMemoryCapabilities { CanUseMemory = true, CanViewMemory = true, CanManageMemory = true }); |