noumanjavaid commited on
Commit
ca60cc8
·
verified ·
1 Parent(s): 573bcea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -52,8 +52,8 @@ st.markdown("""
52
  """, unsafe_allow_html=True)
53
 
54
  # Initialize OpenAI client
55
- openai.api_key = st.secrets.get("OPENAI_API_KEY", "xai-1HSpHLqxC3LnInrYpwAobgEVsjchUG0PP0adniSXWGQXwq6YfvcPto9MhsS6ouQtC4a4Dh2qqXmERgQQ")
56
- openai.base_url = "https://api.x.ai/v1"
57
 
58
  class GrokChatApp:
59
  def __init__(self):
@@ -77,7 +77,7 @@ class GrokChatApp:
77
 
78
  # Call Grok AI
79
  response = openai.chat.completions.create(
80
- model="grok-vision-beta",
81
  messages=conversation
82
  )
83
 
 
52
  """, unsafe_allow_html=True)
53
 
54
  # Initialize OpenAI client
55
+ apiKey = st.secrets.get("OPENAI_API_KEY")
56
+ baseURL: "https://api.x.ai/v1",
57
 
58
  class GrokChatApp:
59
  def __init__(self):
 
77
 
78
  # Call Grok AI
79
  response = openai.chat.completions.create(
80
+ model="grok-beta",
81
  messages=conversation
82
  )
83