randydev commited on
Commit
fab8b8d
1 Parent(s): 4e09bd8

Upload main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -8
main.py CHANGED
@@ -554,8 +554,6 @@ def v1beta3_google_ai(query: str, api_key: None = Depends(validate_api_key)):
554
  @app.post("/ryuzaki/v1beta2-google-ai")
555
  def v1beta2_google_ai(
556
  query: str,
557
- temperature=0.5,
558
- candidateCount=1,
559
  api_key: None = Depends(validate_api_key)
560
  ):
561
  url = SOURCE_ASSISTANT_GOOGLE_AI
@@ -565,12 +563,7 @@ def v1beta2_google_ai(
565
  headers = {"Content-Type": "application/json"}
566
  data = {
567
  "prompt": {
568
- "messages": [
569
- {"content": query}
570
- ]
571
- },
572
- "temperature": temperature,
573
- "candidateCount": candidateCount
574
  }
575
  response = requests.post(api_url, headers=headers, json=data)
576
  response_str = response.json()
 
554
  @app.post("/ryuzaki/v1beta2-google-ai")
555
  def v1beta2_google_ai(
556
  query: str,
 
 
557
  api_key: None = Depends(validate_api_key)
558
  ):
559
  url = SOURCE_ASSISTANT_GOOGLE_AI
 
563
  headers = {"Content-Type": "application/json"}
564
  data = {
565
  "prompt": {
566
+ "messages": [{"content": query}]}
 
 
 
 
 
567
  }
568
  response = requests.post(api_url, headers=headers, json=data)
569
  response_str = response.json()