Rename CHATGPT_API_KEY to OPENAI_API_KEY#156
Open
senthilkumaranT wants to merge 1 commit intoVectifyAI:mainfrom
Open
Rename CHATGPT_API_KEY to OPENAI_API_KEY#156senthilkumaranT wants to merge 1 commit intoVectifyAI:mainfrom
senthilkumaranT wants to merge 1 commit intoVectifyAI:mainfrom
Conversation
This PR renames the environment variable and internal constant CHATGPT_API_KEY to OPENAI_API_KEY across the codebase. This change aligns the project with standard OpenAI naming conventions and improves consistency in API key management.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refactor: OpenAI API Key Naming Standard. "CHATGPT_API_KEY" (Issue #152)
Overview
This update standardizes the API key naming convention within the PageIndex framework. To align with industry standards and the official OpenAI environment variable naming, all instances of
CHATGPT_API_KEYhave been migrated toOPENAI_API_KEY.🛠️ Changes
1. Source Code (pageindex/utils.py)
CHATGPT_API_KEYtoOPENAI_API_KEY.os.getenv("OPENAI_API_KEY").2. Documentation (README.md)
.envconfiguration example to guide users to useOPENAI_API_KEYfor local setup.How to Update
If you previously had a
.envfile, please update your variable name:Old: