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

decompose class hierarchy of LLM implementations #397

Merged
merged 16 commits into from
Sep 22, 2023

Conversation

Intex32
Copy link
Member

@Intex32 Intex32 commented Sep 7, 2023

decompose class hierarchy of LLM implementations:
from one class per provider → one class per model and it's respective capabilities

Current problem:
you may call functions on a model that the model does not support, as there is only one class per provider that all models use
in particular, ChatWithFunctions extends Chat, whereby ChatWithFunctions is not necessarily compatible with Chat, thus modelled incorrectly which can lead to unsupported operations at runtime

@Intex32 Intex32 linked an issue Sep 7, 2023 that may be closed by this pull request
@Intex32
Copy link
Member Author

Intex32 commented Sep 18, 2023

@raulraja For the moment, I feel like the PR is ready for first feedback.

@raulraja
Copy link
Contributor

Since this is quite a large PR, it would be good if we could get a walk-through tomorrow or early this week to see the most relevant aspects and things you changed together.

@Intex32 Intex32 marked this pull request as ready for review September 20, 2023 08:39
raulraja
raulraja previously approved these changes Sep 20, 2023
Copy link
Contributor

@raulraja raulraja left a comment

Choose a reason for hiding this comment

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

Looks great @Intex32 !

Copy link
Contributor

@javipacheco javipacheco left a comment

Choose a reason for hiding this comment

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

Really great job!

I have added some suggestions. Please, let me know your opinion about them

* storing full prompt and response messages

* updated the rest of the functions

* fixed problem in messages order and added tests
@Intex32
Copy link
Member Author

Intex32 commented Sep 21, 2023

PR ready, quillos?

Copy link
Contributor

@javipacheco javipacheco left a comment

Choose a reason for hiding this comment

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

🚀

@Intex32 Intex32 merged commit 774c796 into main Sep 22, 2023
5 checks passed
@Intex32 Intex32 deleted the 393-decompose-class-hierarchy-of-llm-implementations branch September 22, 2023 07:53
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.

decompose class hierarchy of LLM implementations
4 participants