moriire commited on
Commit
2a139b2
1 Parent(s): 08499cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -113,7 +113,7 @@ async def chat(gen:GenModel):
113
  )
114
 
115
  # Chat Completion API
116
- @app.get("/generate")
117
  async def generate(gen:GenModel):
118
  gen.system: str = "You are an AI assistant."
119
  gen.temperature: float = 0.5
 
113
  )
114
 
115
  # Chat Completion API
116
+ @app.post("/generate")
117
  async def generate(gen:GenModel):
118
  gen.system: str = "You are an AI assistant."
119
  gen.temperature: float = 0.5