kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
main
rodzic
b41d4ff1f8
commit
012f488931
|
@ -1,5 +1,7 @@
|
||||||
import { sha256 } from '@agentic/platform-core'
|
import { sha256 } from '@agentic/platform-core'
|
||||||
|
|
||||||
export async function createConsumerApiKey(): Promise<string> {
|
export async function createConsumerApiKey(): Promise<string> {
|
||||||
return `sk-${await sha256()}`
|
const hash = await sha256()
|
||||||
|
|
||||||
|
return `sk-${hash}`
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue