Comments (4)
Sure, sounds cool,
let's wait for any official regex from openAI itself.
from commanddash.
Hey,
I searched and found a similar issue on OpenAI Community Chat (link attached)
https://community.openai.com/t/what-are-the-valid-characters-for-the-apikey/288643
According to it the most common pattern is : sk-[20 characters]T3BlbkFJ[20 characters]
so we can try and create regex according
lemme know if it suits, would like to work on this issue.
from commanddash.
Hey @Yash-Khattar, Thanks for showing interest in this issue.
I'm on board with the approach, but we need to confirm the exact format of OpenAI keys before moving forward. While it seems likely they follow the pattern sk-[20 characters]T3BlbkFJ[20 characters], we can't rely on assumptions for something this critical.
Here's what I've found so far:
- No Official Regex: OpenAI hasn't released an official regular expression for key validation yet (see link: https://community.openai.com/t/regex-s-to-validate-api-key-and-org-id-format/44619).
- Community Observations: Some community members have observed the sk-[20 characters]T3BlbkFJ[20 characters] pattern, but it's not guaranteed.
Proposal:
I suggest we keep this issue open until we have an official regex from OpenAI. Once it's available, we can quickly incorporate it for accurate key validation.
Please let me know if you have any other thoughts or suggestions.
from commanddash.
Closing it since there's no estimated date for REGEX, we can re-open once an official regex is out.
from commanddash.
Related Issues (20)
- ReferenceError: fetch is not defined HOT 1
- [Feat]: Display References in a Tree View. (Research) HOT 2
- [Feat]: Implement Workspace Selection Dropdown for '@' Command HOT 3
- [Feat]: Implement Expandable Chat Input Box HOT 5
- [Feat]: Design Frontend UI for Loading Screen During Workspace Query Processing HOT 3
- [Feat]: Support IntelliJ Idea 2023.3.2 HOT 11
- Newly installed user cannot access chat feature HOT 1
- [Feat]: Must have improved onboarding experience HOT 1
- [Feat]: Add Scroll to Bottom Button in Chat Container HOT 3
- [Feat]: Add Tooltips to Copy and Merge Icons in Code Blocks HOT 1
- Exposed API key HOT 6
- [Feat]: Contextual Code Additions. HOT 1
- [Feat]: Navigate to the file by tapping the path in message tiles. HOT 4
- HTML rendering of index is broken for lists. HOT 3
- Dash Panel Keeps Loading HOT 4
- [Feat]: Add ability to attach entire folders to context. HOT 1
- [Feat]: Tutorials or sample prompts HOT 7
- [Feat]: Api Key is blocked how to change it to new one HOT 1
- [Feat]: Move chat logic to engine
- [Feat]: Proper Feedback Mechanism
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commanddash.