New and updated in 0.1.0
-
Sets the frequency penalty for generation.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:453 -
Sets the web search configuration.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:466 -
Sets the top log probabilities configuration.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:495 -
Sets the output MIME type.
Used by 1 function | Uses 0 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:513 -
Sets the output schema.
Used by 1 function | Uses 0 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:526 -
Sets the output modalities.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:539 -
Sets the maximum number of tokens to generate.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:349 -
Sets the temperature for generation.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:362 -
Sets the top-p value for generation.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:375 -
Sets the top-k value for generation.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:388 -
Sets stop sequences for generation.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:401 -
Sets the number of candidates to generate.
Used by 5 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:414 -
Sets the function declarations available to the model.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:427 -
Sets the presence penalty for generation.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:440 -
Sets the model configuration.
Used by 0 functions | Uses 1 function | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:301 -
Sets the provider to use for generation.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:320 -
Sets the system instruction.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:336 -
Adds message parts to the current message.
Used by 0 functions | Uses 1 function | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:198 -
Adds conversation history messages.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:216 -
Sets the model to use for generation.
Used by 0 functions | Uses 1 function | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:233 -
classPromptBuilder
Fluent builder for constructing AI prompts.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:50 -
Constructor.
Used by 2 functions | Uses 2 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:95 -
Adds text to the current message.
Used by 0 functions | Uses 2 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:146 -
Adds a file to the current message.
Used by 0 functions | Uses 3 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:169 -
Adds a function response to the current message.
Used by 0 functions | Uses 2 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:184 -
methodAiClient::message()
Creates a new message builder for fluent API usage.
-
Converts text to speech using the traditional API approach.
-
Generates speech using the traditional API approach.
-
methodAiClient::isConfigured()
Checks if a provider is configured and available for use.
-
methodAiClient::prompt()
Creates a new prompt builder for fluent API usage.