yym68686 commited on
Commit
28f36b6
·
1 Parent(s): 974f096

🐛 Bug: Fix the bug in the vertex API key concatenation syntax error.

Browse files
Files changed (1) hide show
  1. request.py +1 -1
request.py CHANGED
@@ -316,7 +316,7 @@ async def get_vertex_gemini_payload(request, engine, provider):
316
  model_dict = get_model_dict(provider)
317
  model = model_dict[request.model]
318
  location = gem
319
- url = "https://{LOCATION}-aiplatform.googleapis.com/v1/projects/{PROJECT_ID}/locations/{LOCATION}/publishers/google/models/{MODEL_ID}:{stream}".format(LOCATION=location.next(), PROJECT_ID=project_id, MODEL_ID=model, stream=gemini_stream)
320
 
321
  messages = []
322
  systemInstruction = None
 
316
  model_dict = get_model_dict(provider)
317
  model = model_dict[request.model]
318
  location = gem
319
+ url = "https://{LOCATION}-aiplatform.googleapis.com/v1/projects/{PROJECT_ID}/locations/{LOCATION}/publishers/google/models/{MODEL_ID}:{stream}".format(LOCATION=await location.next(), PROJECT_ID=project_id, MODEL_ID=model, stream=gemini_stream)
320
 
321
  messages = []
322
  systemInstruction = None