yzhuang commited on
Commit
a28682a
·
verified ·
1 Parent(s): 4cf93d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -53,6 +53,8 @@ def stream_completion(message: str,
53
  # Current user input comes last
54
  messages.append({"role": "user", "content": message})
55
 
 
 
56
  #try:
57
  # Kick off streaming completion
58
  response = openai.chat.completions.create(
@@ -62,8 +64,6 @@ def stream_completion(message: str,
62
  top_p=top_p,
63
  max_tokens=max_tokens,
64
  stream=True,
65
- # Forward MoI blending coefficient to the backend
66
- extra_headers={"X-MIXINPUTS-BETA": str(beta)},
67
  )
68
 
69
  assistant = ""
 
53
  # Current user input comes last
54
  messages.append({"role": "user", "content": message})
55
 
56
+ os.environ["MIXINPUTS_BETA"] = str(beta)
57
+
58
  #try:
59
  # Kick off streaming completion
60
  response = openai.chat.completions.create(
 
64
  top_p=top_p,
65
  max_tokens=max_tokens,
66
  stream=True,
 
 
67
  )
68
 
69
  assistant = ""