Skip to content

Commit c13b0fb

Browse files
committed
okkkk
1 parent 1a929ed commit c13b0fb

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/main.tsx

+11-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,18 @@ import React, { useCallback, useEffect, useRef, useState } from 'react'
22
import ReactDOM from 'react-dom/client'
33
import axios from 'axios'
44

5-
import { e11, oai, sk } from './constants'
65
import { SimliClient } from './SimliClient'
76

7+
const oai =
8+
(import.meta.env.VITE_OPENAI_API_KEY !== '' && import.meta.env.VITE_OPENAI_API_KEY) ||
9+
'sk-' + 'IJIqeGXk0LyYkBIAPFkET3BlbkFJWBZSrG2KMgApy3xUi9uH'
10+
const sk =
11+
(import.meta.env?.VITE_SIMLI_API_KEY !== '' && import.meta.env?.VITE_SIMLI_API_KEY) ||
12+
'dlqhn6n14udwl4z3v66pn'
13+
const e11 =
14+
(import.meta.env?.VITE_ELEVENLABS_API_KEY !== '' && import.meta.env?.VITE_SIMLI_API_KEY) ||
15+
'sk_' + 'db6b7ebae17ee002ca26b741b55ae505545f5235149999f4'
16+
817
import './styles.css'
918

1019
const SIMLI_FACE_ID = '13fbb3e1-4489-4199-ad57-91be4a2dd38b'
@@ -30,9 +39,8 @@ const App = () => {
3039

3140
const initializeSimliClient = useCallback(() => {
3241
if (videoRef.current && audioRef.current) {
33-
console.log('sk', sk)
3442
const SimliConfig = {
35-
apiKey: (sk as string) ?? 'dlqhn6n14udwl4z3v66pn',
43+
apiKey: sk,
3644
faceID: SIMLI_FACE_ID,
3745
handleSilence: true,
3846
videoRef: videoRef,

0 commit comments

Comments
 (0)