wpseek.com
WordPress开发者和主题制作者的搜索引擎
wp_ai_client_prompt › WordPress Function
Since7.0.0
已弃用n/a
› wp_ai_client_prompt ( $prompt = null )
| 参数: |
|
| 返回: |
|
| 定义在: |
|
| 文档: |
Creates a new AI prompt builder using the default provider registry.
This is the main entry point for generating AI content in WordPress. It returns a fluent builder that can be used to configure and execute AI prompts. The prompt can be provided as a simple string for basic text prompts, or as more complex types for advanced use cases like multi-modal content or conversation history.Related Functions: wp_ai_client_embedding, is_client_error, wp_get_recent_posts, wp_add_inline_script, wp_apply_alignment_support