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

Refactored LLM Integration #388

Merged
merged 37 commits into from
Jul 4, 2024
Merged

Conversation

lauraschauer
Copy link
Contributor

This refactors the LLM integration. The most important changes are:

  • Creates a singleton wrapper class for all llm-related functions and the instance of the model called LLMService
  • Simplifies model instantiation
  • Fixes tests

before pushing, make sure that this information about sk.json can be pushed!
… config.llm_service. When LLMService is needed again, just access the instance using LLMService() without having to supply the config.
…was raised even though the use of llms was set to false

This happened because the LLMService singleton was initialised even though it would not be needed later on. This happened because of an error in an if statement
fixes the environment variables iin the LLM tets and fixes sometest files unrelated to LLMss
@copernico copernico merged commit 2633695 into SAP:main Jul 4, 2024
3 checks passed
@lauraschauer lauraschauer deleted the lascha-llm-service branch July 5, 2024 14:47
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