Skip to content

Commit

Permalink
Update ai_service.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rimgosu authored Feb 16, 2024
1 parent ba1f9f2 commit cacc781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/services/ai_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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}")
raise HTTPException(status_code=500, detail=f"An error occurred while uploading MP3 to Azure: {e}")

0 comments on commit cacc781

Please sign in to comment.