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

Make OpenAI access configurable #54

Closed
schnelle opened this issue May 27, 2024 · 1 comment
Closed

Make OpenAI access configurable #54

schnelle opened this issue May 27, 2024 · 1 comment

Comments

@schnelle
Copy link
Collaborator

Currently, the OpenAI developer key is hardcoded. This should be replaced by a configuration mechanism

@schnelle schnelle self-assigned this May 27, 2024
schnelle added a commit that referenced this issue Nov 19, 2024
Updated `FindLog4cplus.cmake` to include additional search paths.
Modified `CMakeLists.txt` to include new ChatGPT headers and copy
`ChatGPTIPAProvider.json` to the config directory. Added new JSON
config file `ChatGPTIPAProvider.json` for ChatGPT API settings.
Added `ChatGPTConfiguration.h` for parsing JSON config. Updated
`ChatGPTIPAProvider` class to load config values and use them in
`processInput`. Updated `IPAProvider` to include a pure virtual
`initialize` method. Modified `ProviderRegistry` to call `initialize`
on IPA providers when added to the registry.
schnelle added a commit that referenced this issue Nov 20, 2024
Updated instructions to place the OpenAI developer key in `ChatGPTIPAProvider.json` instead of hard-coding it in `chatgptadapter.cpp`. Added a cautionary note to avoid committing the key to the repository.
schnelle added a commit that referenced this issue Jan 10, 2025
Include <filesystem> header for file operations. Add a check in the
initialize method to verify the existence of ChatGPTIPAProvider.json.
Log an error and return early if the file is missing to prevent
runtime errors.
@schnelle
Copy link
Collaborator Author

Implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant