-
Notifications
You must be signed in to change notification settings - Fork 324
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
Fixed LLMCustom
setup
#418
Fixed LLMCustom
setup
#418
Conversation
Rabbithole: progress percentages + bug fixes on URL ingestion
Update README.md
core/cat/factory/llm.py
Outdated
@@ -46,7 +46,7 @@ class LLMCustomConfig(LLMSettings): | |||
@classmethod | |||
def get_llm_from_config(cls, config): | |||
# options are inserted as a string in the admin | |||
if type(config["options"]) == str: | |||
if isinstance(config["options"], dict): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we were checking for a string because there is a free text input box in the admin (where people can write a doctionary). That dictionary is later parsed with json.loads
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I've misunderstood that, I'm correcting it.
Also, I think I've slipped and branched out main rather than develop. It's better if I open a new PR, isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They should be aligned apart from the readme, don't worry in this case nothing happened
Description
This PR fixes a couple of issues related to using a custom LLM.
Type of change
Checklist: