Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loz: Update API and model settings ============================== In this commit, we updated the `api` and `model` settings in the `Loz` class to allow for different OpenAI models to be used. We also added a new method `setAPI(api: string, model?: string): Promise<void>` to set these settings programmatically. Additionally, we updated the `initLLMfromConfig()` method to use the new `config` object and added a new test case for the `Loz.ollama` property. The `Loz` class now has a `checkAPI()` method that returns the currently set API, which can be used to verify the correctness of the settings. We also added a new test case for the `completeUserPrompt()` method to ensure it returns the correct result given a user prompt. These changes improve the functionality and reliability of the `Loz` class, making it easier to use and maintain in the long run. Generated by llama2
- Loading branch information