feat: ai-prompt-template plugin#11517
Merged
shreemaan-abhishek merged 16 commits intoAug 29, 2024
Merged
Conversation
shreemaan-abhishek
marked this pull request as ready for review
August 21, 2024 09:30
bzp2010
self-requested a review
August 23, 2024 05:43
bzp2010
reviewed
Aug 27, 2024
bzp2010
reviewed
Aug 27, 2024
bzp2010
self-requested a review
August 28, 2024 03:15
kayx23
reviewed
Aug 28, 2024
|
|
||
| ## Description | ||
|
|
||
| The `ai-prompt-template` plugin simplifies access to AI providers and models by predefining the request format |
Member
There was a problem hiding this comment.
Suggested change
| The `ai-prompt-template` plugin simplifies access to AI providers and models by predefining the request format | |
| The `ai-prompt-template` plugin simplifies access to LLM providers, such as OpenAI and Anthropic, and their models by predefining the request format |
| ## Description | ||
|
|
||
| The `ai-prompt-template` plugin simplifies access to AI providers and models by predefining the request format | ||
| using a template and allowing users to pass only the values for template variables. |
Member
There was a problem hiding this comment.
Suggested change
| using a template and allowing users to pass only the values for template variables. | |
| using a template, which only allows users to pass customized values into template variables. |
| | ------------------------------------- | -------- | --------------------------------------------------- | ------------ | | ||
| | `templates` | Array | An array of template objects | Yes | | ||
| | `templates.name` | String | Name of the template. | Yes | | ||
| | `templates.template.model` | String | Model of the AI Model. Example: gpt-4, gpt-3.5 | Yes | |
Member
There was a problem hiding this comment.
Suggested change
| | `templates.template.model` | String | Model of the AI Model. Example: gpt-4, gpt-3.5 | Yes | | |
| | `templates.template.model` | String | Model of the AI Model, for example `gpt-4` or `gpt-3.5`. See your LLM provider API documentation for more available models. | Yes | |
moonming
previously approved these changes
Aug 28, 2024
shreemaan-abhishek
dismissed stale reviews from moonming and bzp2010
via
August 28, 2024 17:06
c46944f
Co-authored-by: Traky Deng <[email protected]>
…x into prompt-template
moonming
approved these changes
Aug 29, 2024
bzp2010
approved these changes
Aug 29, 2024
shreemaan-abhishek
added a commit
to shreemaan-abhishek/apisix
that referenced
this pull request
Jan 2, 2026
cherry pick: apache#11517
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Implement ai-prompt-template plugin.
Checklist