Commit Graph

2 Commits

Author SHA1 Message Date
Saryev Rustam
572ee1bf4e Merge pull request #1 from rsaryev/feat/local
GPT4All
2023-05-30 09:24:38 +03:00
Saryev Rustam
f9a31937bb Refactored CLI and LLM classes
- Refactored the CLI and LLM classes to improve code organization and readability.
- Added a  function to create an LLM instance based on the config.
- Moved the  function to the  and  classes.
- Added a  function to handle loading an existing vector store.
- Added a  function to estimate the cost of creating a vector store for OpenAI models.
- Updated the  function to prompt for the model type and path or API key depending on the type.
- Updated the  function to use the  function and  method of the LLM instance.
- Updated the default config to include default values for  and .
- Added a  constant to store the default config values.
- Added a  constant to store the default model path.
2023-05-30 01:12:31 +03:00