Code Monkey home page Code Monkey logo

Comments (4)

Yash-Khattar avatar Yash-Khattar commented on May 20, 2024 1

Sure, sounds cool,
let's wait for any official regex from openAI itself.

from commanddash.

Yash-Khattar avatar Yash-Khattar commented on May 20, 2024

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.

yatendra2001 avatar yatendra2001 commented on May 20, 2024

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:

  1. 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).
  2. 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.

yatendra2001 avatar yatendra2001 commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.