Skip to content

Commit

Permalink
Fix for ChatService. Fixed call to ChatGPT API.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisIvanov committed Jun 12, 2024
2 parents 0388c03 + 174c8a6 commit 1cc375a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/server/CookingApp/Controllers/ChatController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Microsoft.AspNetCore.Mvc;

[ApiController]
[AllowAnonymous]
public class ChatController : ControllerBase
{
private readonly IChatService _chatService;
Expand Down
4 changes: 1 addition & 3 deletions src/server/CookingApp/Services/ChatService/ChatService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
using CookingApp.Infrastructure.Interfaces;
using CookingApp.Models.DTOs;
using System.Text.Json;
using CookingApp.Models;

public class ChatService : IChatService
{
Expand All @@ -18,8 +17,7 @@ public class ChatService : IChatService
private readonly IOpenAIService _openAIService;
private readonly IRepository<User> _userRepository;

public ChatService(
IOpenAIService openAIService,
public ChatService(IOpenAIService openAIService,
ILogger<ChatService> logger,
IRepository<Chat> chatRepository,
IRepository<User> userRepository)
Expand Down

0 comments on commit 1cc375a

Please sign in to comment.