Update app.py
Browse files
app.py
CHANGED
|
@@ -8,9 +8,9 @@ app = FastAPI()
|
|
| 8 |
|
| 9 |
@app.get("/")
|
| 10 |
async def greet_json():
|
| 11 |
-
|
| 12 |
-
url = "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-pro-latest:generateContent?key="+os.environ.get('GEMINI_API_KEY')
|
| 13 |
-
return url
|
| 14 |
|
| 15 |
@app.post("/v1/completions")
|
| 16 |
async def completions(qdata:dict):
|
|
|
|
| 8 |
|
| 9 |
@app.get("/")
|
| 10 |
async def greet_json():
|
| 11 |
+
return {"Hello": "World!"}
|
| 12 |
+
# url = "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-pro-latest:generateContent?key="+os.environ.get('GEMINI_API_KEY')
|
| 13 |
+
# return url
|
| 14 |
|
| 15 |
@app.post("/v1/completions")
|
| 16 |
async def completions(qdata:dict):
|