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/lmstudio integration #13557

Merged
merged 16 commits into from
May 22, 2024

Conversation

shivamklr
Copy link
Contributor

@shivamklr shivamklr commented May 17, 2024

Description

Add Support for LM Studio
Resolves #13556

New Package?

Did I fill in the tool.llamahub section in the pyproject.toml and provide a detailed README.md for my new integration or package?

  • Yes
  • No

Version Bump?

Did I bump the version in the pyproject.toml file of the package I am updating? (Except for the llama-index-core package)

  • Yes
  • No

Type of Change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

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

  • Added new notebook (that tests end-to-end)

Suggested Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added Google Colab support for the newly added notebooks.
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes
  • I ran make format; make lint to appease the lint gods

@shivamklr shivamklr marked this pull request as ready for review May 17, 2024 12:56
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label May 17, 2024
for message in messages
],
"options": self._model_kwargs,
"stream": False,
Copy link
Collaborator

Choose a reason for hiding this comment

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

stream is hardcoded to false here (I think we want to pass this in?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is not actually hardcoded. We can override the value by passing an argument in the function. In the returned dictionary, **kwargs will include all keyword arguments that are not explicitly listed in the function signature. If any of these keyword arguments match the keys in the dictionary, they will override the hardcoded values.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label May 20, 2024
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels May 20, 2024
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@shivamklr
Copy link
Contributor Author

@logan-markewich Let me know if we have additional requirements before the merge into main.

@logan-markewich logan-markewich enabled auto-merge (squash) May 22, 2024 00:54
@logan-markewich logan-markewich merged commit bacded3 into run-llama:main May 22, 2024
8 checks passed
@shivamklr shivamklr deleted the feat/lmstudio-integration branch May 22, 2024 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer size:XL This PR changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: Add LMStudio support
2 participants