@@ -58,22 +58,22 @@ def is_model_supported(self, model: str) -> bool:
5858 return model in self .get_models ()
5959
6060 def is_prompt_supported (
61- self ,
62- messages : Iterable [ChatCompletionMessageParam ],
63- model : str ,
64- frequency_penalty : Optional [float ] | NotGiven = NOT_GIVEN ,
65- logit_bias : Optional [Dict [str , int ]] | NotGiven = NOT_GIVEN ,
66- logprobs : Optional [bool ] | NotGiven = NOT_GIVEN ,
67- max_tokens : Optional [int ] | NotGiven = NOT_GIVEN ,
68- n : Optional [int ] | NotGiven = NOT_GIVEN ,
69- presence_penalty : Optional [float ] | NotGiven = NOT_GIVEN ,
70- response_format : dict | completion_create_params .ResponseFormat | NotGiven = NOT_GIVEN ,
71- stop : Union [Optional [str ], List [str ]] | NotGiven = NOT_GIVEN ,
72- temperature : Optional [float ] | NotGiven = NOT_GIVEN ,
73- tools : Iterable [ChatCompletionToolParam ] | NotGiven = NOT_GIVEN ,
74- tool_choice : ChatCompletionToolChoiceOptionParam | NotGiven = NOT_GIVEN ,
75- top_logprobs : Optional [int ] | NotGiven = NOT_GIVEN ,
76- top_p : Optional [float ] | NotGiven = NOT_GIVEN ,
61+ self ,
62+ messages : Iterable [ChatCompletionMessageParam ],
63+ model : str ,
64+ frequency_penalty : Optional [float ] | NotGiven = NOT_GIVEN ,
65+ logit_bias : Optional [Dict [str , int ]] | NotGiven = NOT_GIVEN ,
66+ logprobs : Optional [bool ] | NotGiven = NOT_GIVEN ,
67+ max_tokens : Optional [int ] | NotGiven = NOT_GIVEN ,
68+ n : Optional [int ] | NotGiven = NOT_GIVEN ,
69+ presence_penalty : Optional [float ] | NotGiven = NOT_GIVEN ,
70+ response_format : dict | completion_create_params .ResponseFormat | NotGiven = NOT_GIVEN ,
71+ stop : Union [Optional [str ], List [str ]] | NotGiven = NOT_GIVEN ,
72+ temperature : Optional [float ] | NotGiven = NOT_GIVEN ,
73+ tools : Iterable [ChatCompletionToolParam ] | NotGiven = NOT_GIVEN ,
74+ tool_choice : ChatCompletionToolChoiceOptionParam | NotGiven = NOT_GIVEN ,
75+ top_logprobs : Optional [int ] | NotGiven = NOT_GIVEN ,
76+ top_p : Optional [float ] | NotGiven = NOT_GIVEN ,
7777 ) -> int :
7878 system , chat = self .__openai_messages_to_google_messages (messages )
7979 gen_model = generativeai .GenerativeModel (model_name = model , system_instruction = system )
0 commit comments