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 openai-compatible api models #2683

Merged
merged 22 commits into from
Jul 25, 2024

Conversation

supersonictw
Copy link
Contributor

@supersonictw supersonictw commented Jul 17, 2024

Describe your changes

The feature of connecting to OpenAI compatible server for chatting.

Issue ticket number and link

#1243

Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.
  • I have added thorough documentation for my code.
  • I have tagged PR with relevant project labels. I acknowledge that a PR without labels may be dismissed.
  • If this PR addresses a bug, I have provided both a screenshot/video of the original bug and the working solution.

Demo

Explore Models
Installed Models
Chats
Network Errors
Toast Notifications

Steps to Reproduce

None

Notes

TODO:

  • Check the base URL is valid
  • Display the installed server info on the model list

@supersonictw supersonictw changed the title feat: add openai-compatible for chat draft: add openai-compatible for chat Jul 17, 2024
@supersonictw supersonictw marked this pull request as draft July 17, 2024 08:56
Signed-off-by: Shiranui <supersonic@livemail.tw>
@manyoso
Copy link
Collaborator

manyoso commented Jul 17, 2024

I like it... @cebtenzzre you?

Biggest problem I see is that the UI needs to be reworked so that people could install more than one of these and also it should be marked somehow that it is remote/network model more prominently

@manyoso manyoso requested a review from cebtenzzre July 17, 2024 13:37
Signed-off-by: Shiranui <supersonic@livemail.tw>
Signed-off-by: Shiranui <supersonic@livemail.tw>
Signed-off-by: Shiranui <supersonic@livemail.tw>
Signed-off-by: Shiranui <supersonic@livemail.tw>
Signed-off-by: Shiranui <supersonic@livemail.tw>
Signed-off-by: Shiranui <supersonic@livemail.tw>
Signed-off-by: Shiranui <supersonic@livemail.tw>
Signed-off-by: Shiranui <supersonic@livemail.tw>
Signed-off-by: Shiranui <supersonic@livemail.tw>
Signed-off-by: Shiranui <supersonic@livemail.tw>
Signed-off-by: Shiranui <supersonic@livemail.tw>
@supersonictw supersonictw changed the title draft: add openai-compatible for chat Add openai-compatible for chat Jul 18, 2024
@supersonictw supersonictw changed the title Add openai-compatible for chat feat: add openai-compatible for chat Jul 18, 2024
@supersonictw supersonictw changed the title feat: add openai-compatible for chat feat: add openai-compatible api models Jul 18, 2024
Signed-off-by: Shiranui <supersonic@livemail.tw>
Signed-off-by: Shiranui <supersonic@livemail.tw>
Signed-off-by: Shiranui <supersonic@livemail.tw>
@supersonictw supersonictw marked this pull request as ready for review July 19, 2024 08:23
For explaining what are differences between 'isOnline' and 'isCompatibleApi' in ModelInfo.

Signed-off-by: Shiranui <supersonic@livemail.tw>
Signed-off-by: Shiranui <supersonic@livemail.tw>
Signed-off-by: Shiranui <supersonic@livemail.tw>
cebtenzzre and others added 4 commits July 19, 2024 17:28
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
Signed-off-by: Shiranui <supersonic@livemail.tw>
Signed-off-by: Shiranui <supersonic@livemail.tw>
Signed-off-by: Shiranui <supersonic@livemail.tw>
@manyoso manyoso merged commit f9cd2e3 into nomic-ai:main Jul 25, 2024
2 checks passed
@supersonictw supersonictw deleted the openai_compatible branch July 31, 2024 03:55
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.

3 participants