![]() For example, if tokens A, B, and C have a probability ofĠ.3, 0.2, and 0.1 and the top-P value is 0.5, then the model will Tokens are selectedįrom the most (see top-K) to least probable until the sum of their probabilitiesĮquals the top-P value. ![]() Top-P changes how the model selects tokens for output. Specify a lower value for less random responses and a higher value for more The final token selected using temperature sampling. Then tokens are further filtered based on top-P with Tokens in the model's vocabulary (also called greedy decoding), while a top-K ofģ means that the next token is selected from among the three mostįor each token selection step, the top-K tokens with the highest A top-K ofġ means the next selected token is the most probable among all Top-K changes how the model selects tokens for output. Specify a lower value for shorter responses and a higher value for potentially longer 100 tokens correspond to roughly 60-80 words. Maximum number of tokens that can be generated in the response. Temperature of 0 is deterministic: the highest probability response is While higher temperatures can lead to more diverse or creative results. Require a more deterministic and less open-ended or creative response, Lower temperatures are good for prompts that The temperature is used for sampling during the response generation, which The threshold for blocking responses that could belong to the specified The safety category to configure a threshold for. parameters The parameters of this function in a formatįor more information, see Function calling.For the best results, we recommend that you include a The model uses this to decide how and whether to call Underscores and dashes, with a maximum length of 64. Must start withĪ letter or an underscore. name The name of the function to call.Information about one function that includes the following: To perform an action, or set of actions, outside of knowledge and scope of For example, to specify a 10 second clip starting at 1:00, setĪ piece of code that enables the system to interact with external systems ![]() For video input, the start and end offset of the video inįormat. The bucket that stores theįile must be in the same Google Cloud project that's sending the request. The Cloud Storage URI of the image or video to include in the prompt. Including media inline, you must also specify MIMETYPE. The base64 encoding of the image or video to include inline in the prompt. The media type of the image or video specified in the data or fileUriįields. Serialized bytes data of the image or video. The text instructions or chat dialogue to include in the prompt. Parts may have different MIME types.įor gemini-1.0-pro, only the text field is valid.įor gemini-1.0-pro-vision, you may specify either text only, textĪnd up to 16 images, or text and 1 video. USER: Specifies content that's sent by you.The role in a conversation associated with the content. End of list of possible types for union field data. Union field data can be only one of the following: The request body contains data with the following structure: Specify the model name without a version number, for example gemini-1.0-pro or gemini-1.0-pro-vision.įor more information, see Model versions and lifecycle. ![]() Gemini Pro POST Note:You can enable Server Sent Events (SSE)įor gemini-1.0-pro by appending ?alt=sse to the URL. Cloud SDK, languages, frameworks, and tools
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |