curl --request POST \
--url http://localhost:8000/api/v1/chat/execute-gemini-prompt \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": {
"type": "negative_keyword_recommendations",
"prompt": "<string>",
"id": 123,
"prompt_variables": [
"<string>"
],
"prompt_formatting_data": {},
"formatted_prompt": "<string>",
"date_added": "2023-11-07T05:31:56Z",
"date_updated": "2023-11-07T05:31:56Z",
"model_name": "<string>",
"temperature": 123
},
"prompt_request": {
"extra_data": {}
}
}
'{}Execute the Gemini prompt via OpenRouter.
Args: prompt (FormattedGeminiPromptSchema): The formatted Gemini prompt campaign_id (int): The ID of the campaign customer_id (int): The ID of the Google Ads customer login_customer_id (int | None): The ID of the Google Ads login customer prompt_request (GetFormattedPromptRequestSchema | None): The request to get the formatted prompt as_user_id (int | None): The ID of the user to impersonate admin_user (User): The current user model_name (str | None): The model name (defaults to settings.OPENROUTER_DEFAULT_MODEL) temperature (float | None): The temperature for the model
Returns: dict: The response
curl --request POST \
--url http://localhost:8000/api/v1/chat/execute-gemini-prompt \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": {
"type": "negative_keyword_recommendations",
"prompt": "<string>",
"id": 123,
"prompt_variables": [
"<string>"
],
"prompt_formatting_data": {},
"formatted_prompt": "<string>",
"date_added": "2023-11-07T05:31:56Z",
"date_updated": "2023-11-07T05:31:56Z",
"model_name": "<string>",
"temperature": 123
},
"prompt_request": {
"extra_data": {}
}
}
'{}The access token received from the authorization server in the OAuth 2.0 flow.
Successful Response
The response is of type Response Execute Gemini Prompt Api V1 Chat Execute Gemini Prompt Post · object.