Skip to content

Commit ee89350

Browse files
committed
integrate changed methods
1 parent f071b9a commit ee89350

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

server/api/views/uploadFile/title.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,5 @@ def summarize_pdf(pdf: fitz.Document) -> str:
3939

4040
# UploadFile model title is limited to 255 chars.
4141
prompt = "Please provide a title for this document. The title should be less than 256 characters and will be displayed on a webpage."
42-
service = openAIServices()
43-
response = service.prompt_with_context(first_page_content, prompt, model='gpt-4o', temp=0.0)
42+
response = openAIServices.openAI(first_page_content, prompt, model='gpt-4o', temp=0.0)
4443
return response.choices[0].message.content

0 commit comments

Comments
 (0)