Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

40 added openai integration #46

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

40 added openai integration #46

wants to merge 8 commits into from

Conversation

vicliu2001
Copy link
Collaborator

@vicliu2001 vicliu2001 commented Nov 3, 2024

Description

**Fixes #40 **

Completed openai service call. Can send photo to chatgpt and receive response

Documentation Used

Please list any documentation or resources that were referenced while making these changes.

N/A

Issues Faced and Resolutions

Please describe any issues you encountered during development and how you resolved them.

  • Issue: had trouble with using the key
    • Resolution: put in .env
    • Fixed
  • Issue: was not able to receive image buffer due to disk storage method of saving images
    • Resolution: change to use memory storage
    • Temporarily fixed, alternative solution to use both disk and memory storage is provided in multer.ts

How To Test?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.

start server, then use postman to test:

Screen Shot 2024-11-09 at 11 14 27 AM

@vicliu2001 vicliu2001 linked an issue Nov 3, 2024 that may be closed by this pull request
4 tasks
@vicliu2001 vicliu2001 marked this pull request as draft November 3, 2024 17:44
@vicliu2001 vicliu2001 marked this pull request as ready for review November 9, 2024 16:15
@vicliu2001 vicliu2001 changed the title added openai integration 40 added openai integration Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API integration
2 participants