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

Add file upload functionality #1

Merged
merged 1 commit into from
Sep 25, 2024
Merged

Add file upload functionality #1

merged 1 commit into from
Sep 25, 2024

Conversation

Ryan526
Copy link
Owner

@Ryan526 Ryan526 commented Sep 25, 2024

Fixes Niek#465

Add file upload functionality to chat interface.

  • Chat.svelte

    • Add a file input element for uploading files.
    • Handle file input change event to read the file.
    • Update the submitForm function to include file data in the request.
  • ChatOptionMenu.svelte

    • Add an option to upload files in the dropdown menu.
    • Handle file input change event to read the file.
  • ApiUtil.svelte

    • Add a new endpoint for file uploads.
  • Storage.svelte

    • Add a function to handle file uploads and store them appropriately.

For more details, open the Copilot Workspace session.

Fixes Niek#465

Add file upload functionality to chat interface.

* **Chat.svelte**
  - Add a file input element for uploading files.
  - Handle file input change event to read the file.
  - Update the `submitForm` function to include file data in the request.

* **ChatOptionMenu.svelte**
  - Add an option to upload files in the dropdown menu.
  - Handle file input change event to read the file.

* **ApiUtil.svelte**
  - Add a new endpoint for file uploads.

* **Storage.svelte**
  - Add a function to handle file uploads and store them appropriately.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Niek/chatgpt-web/issues/465?shareId=XXXX-XXXX-XXXX-XXXX).
@Ryan526 Ryan526 merged commit faead2e into main Sep 25, 2024
@Ryan526 Ryan526 deleted the add-file-upload branch September 30, 2024 14:37
Ryan526 pushed a commit that referenced this pull request Oct 7, 2024
[AI-32] Add option for custom OpenAI-compatible endpoint
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.

Upload files to chatGPT
1 participant