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

Store OpenAI API Key in config.json #17

Closed
wants to merge 1 commit into from

Commits on Feb 12, 2024

  1. Store OpenAI API Key in config.json

    - Add `LOZ` prefix to `OPENAI_API_KEY` but keep `OPENAI_API_KEY` for
      a legacy.
    - Use `readlinePromises` instead of `readline` in `src/config/index.ts` and `src/index.ts`.
    - Remove the `checkEnv` method from `src/index.ts` as it is no longer needed.
    - Pass the `apiKey` to the `OpenAiAPI` constructor in `src/llm/index.ts`.
    - Remove the `checkEnv` test case from `test/a.loz.test.ts` as it is no longer needed.
    honeymaro committed Feb 12, 2024
    Configuration menu
    Copy the full SHA
    67cdda9 View commit details
    Browse the repository at this point in the history