From cacc781f974b18ac26ead1c6cf3ab47158d30f01 Mon Sep 17 00:00:00 2001 From: rimgosu <120752098+rimgosu@users.noreply.github.com> Date: Fri, 16 Feb 2024 18:23:46 +0900 Subject: [PATCH] Update ai_service.py --- app/services/ai_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/ai_service.py b/app/services/ai_service.py index d969ffb..2f24c67 100644 --- a/app/services/ai_service.py +++ b/app/services/ai_service.py @@ -85,7 +85,7 @@ async def chat_with_openai_service(db: AsyncSession, chat_request: ChatRequestDt try: completion = openai.ChatCompletion.create( - model="gpt-3.5-turbo", + model="ft:gpt-3.5-turbo-0613:personal::8sn4jyEw", temperature=1.5, top_p=0.7, frequency_penalty=0.3, @@ -173,4 +173,4 @@ async def upload_mp3_azure(mp3_path: str) -> str: return blob_client.url except Exception as e: print(f"An error occurred while uploading MP3 to Azure: {e}") - raise HTTPException(status_code=500, detail=f"An error occurred while uploading MP3 to Azure: {e}") \ No newline at end of file + raise HTTPException(status_code=500, detail=f"An error occurred while uploading MP3 to Azure: {e}")