run-llama / rags

Build ChatGPT over your data, all with natural language
MIT License
6.17k stars 629 forks source link

refactoring of _resolve_llm #24

Closed alexfilothodoros closed 9 months ago

alexfilothodoros commented 9 months ago

I worked on a TODO comment in the original code saying:

"""Resolve LLM."""
    # TODO: make this less hardcoded with if-else statements
    # see if there's a prefix
    # - if there isn't, assume it's an OpenAI model
    # - if there is, resolve it