mirror of
https://github.com/placeholder-soft/storytime.git
synced 2026-04-29 13:05:00 +08:00
chore: remove key
This commit is contained in:
2
.envrc
2
.envrc
@@ -5,6 +5,8 @@ export STORY_TIME_NFT_ADDRESS="0xcc8c78580574f9af04995ac822597ce4b5bb1e0193e1238
|
||||
|
||||
export STORY_TIME_NFT_ABI="abi/StoryTimeNFT.json"
|
||||
|
||||
export OPENAI_API_KEY="abcabc"
|
||||
|
||||
if [ -f .envrc.override ]; then
|
||||
source_env .envrc.override
|
||||
fi
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { OpenAI } from "openai";
|
||||
async function generateImage() {
|
||||
const openai = new OpenAI({
|
||||
apiKey: "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",
|
||||
apiKey: process.env.OPENAI_API_KEY,
|
||||
});
|
||||
|
||||
const response = await openai.images.generate({
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { OpenAI } from "openai";
|
||||
async function generateImage() {
|
||||
const openai = new OpenAI({
|
||||
apiKey: "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",
|
||||
apiKey: process.env.OPENAI_API_KEY,
|
||||
});
|
||||
|
||||
const response = await openai.images.generate({
|
||||
|
||||
@@ -6,7 +6,7 @@ import axios from "axios";
|
||||
|
||||
async function generateImage() {
|
||||
const openai = new OpenAI({
|
||||
apiKey: "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",
|
||||
apiKey: process.env.OPENAI_API_KEY,
|
||||
});
|
||||
|
||||
const imageUrl =
|
||||
|
||||
Reference in New Issue
Block a user