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

feat: Add new GPT-4-Vision Support and support custom URL with port. #66

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

Conversation

Kan1aSorata
Copy link

Hi, I'm a chinese student, thank for ur amazing repo about open-ai, It helps me a lot during develop.
I add some new feature for this. Since our school uses its own OPENAI KEY platform, it is necessary to access it through a specific port, but i found this repo is not support that, so i add it, and also support the new GPT4-Vision.

// File.swift
//
//
// Created by 贺峰煜 on 2023/11/29.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove these generated comments.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

public let usage: Usage
}

extension ChatWithImage: Codable {}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem right, you should be able to extend the pre-existing Chat model to support the inclusion of an image.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I revised the redundant parts of the code.

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.

2 participants