Update app.py
Browse files
app.py
CHANGED
@@ -113,7 +113,7 @@ async def chat(gen:GenModel):
|
|
113 |
)
|
114 |
|
115 |
# Chat Completion API
|
116 |
-
@app.
|
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
|