randydev commited on
Commit
708950b
1 Parent(s): 84f45cc

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -895,7 +895,7 @@ async def chatgpt_customs(
895
  ):
896
  try:
897
  GPTbase = "https://gpt-api.mycloud.im/v1"
898
- x = OpenAI(api_key=api_key, api_base=GPTbase)
899
  answer = await x.api_chat(query=item.query, model=item.model)
900
  return SuccessResponse(
901
  status="True",
 
895
  ):
896
  try:
897
  GPTbase = "https://gpt-api.mycloud.im/v1"
898
+ x = OpenAI(api_base=GPTbase)
899
  answer = await x.api_chat(query=item.query, model=item.model)
900
  return SuccessResponse(
901
  status="True",