Skip to content

Commit

Permalink
修正
Browse files Browse the repository at this point in the history
  • Loading branch information
miyaji255 committed May 1, 2024
1 parent 02421d7 commit b414cc3
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 28 deletions.
8 changes: 0 additions & 8 deletions KoeBook.Core/Contracts/Services/ILlmStoryGeneratorService.cs

This file was deleted.

4 changes: 2 additions & 2 deletions KoeBook.Core/Services/ClaudeStoryGeneratorService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

namespace KoeBook.Core.Services;

internal class ClaudeStoryGeneratorService(IClaudeService claudeService) : ILlmStoryGeneratorService
public class ClaudeStoryGeneratorService(IClaudeService claudeService) : IStoryCreatorService
{
private readonly IClaudeService _claudeService = claudeService;

public async ValueTask<string> GenerateStoryAsync(StoryGenre storyGenre, string premise, CancellationToken cancellationToken)
public async ValueTask<string> CreateStoryAsync(StoryGenre storyGenre, string premise, CancellationToken cancellationToken)
{
if (_claudeService.Messages is null)
{
Expand Down
4 changes: 0 additions & 4 deletions KoeBook/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
using KoeBook.Contracts.Services;
using KoeBook.Core;
using KoeBook.Core.Contracts.Services;
using KoeBook.Core.Services;
using KoeBook.Core.Services.Mocks;
using KoeBook.Epub.Contracts.Services;
using KoeBook.Epub.Services;
using KoeBook.Models;
using KoeBook.Notifications;
using KoeBook.Services;
Expand Down Expand Up @@ -82,7 +79,6 @@ public App()
services.AddSingleton<IDialogService, DialogService>();
services.AddSingleton<IDisplayStateChangeService, DisplayStateChangeService>();
services.AddSingleton<ICreateCoverFileService, CreateCoverFileService>();
services.AddSingleton<IStoryCreatorService, StoryCreatorService>();

// Views and ViewModels
services.AddTransient<SettingsViewModel>();
Expand Down
13 changes: 0 additions & 13 deletions KoeBook/Services/StoryCreatorService.cs

This file was deleted.

3 changes: 2 additions & 1 deletion KoeBook/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public static IHostBuilder UseCoreStartup(this IHostBuilder builder)
.AddSingleton<IScraperSelectorService, ScraperSelectorService>()
.AddSingleton<IScrapingService, ScrapingAozoraService>()
.AddSingleton<IScrapingService, ScrapingNaroService>()
.AddSingleton<AiStoryAnalyzerService>();
.AddSingleton<AiStoryAnalyzerService>()
.AddSingleton<IStoryCreatorService, ClaudeStoryGeneratorService>();
services.AddSingleton<IEpubCreateService, EpubCreateService>();
services.AddSingleton<ISplitBraceService, SplitBraceService>();
services.AddSingleton<IFileExtensionService, FileExtensionService>();
Expand Down

0 comments on commit b414cc3

Please sign in to comment.