generated from songquanpeng/gin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Default Options Value Override Feature #1859
Open
MotorBottle
wants to merge
7
commits into
songquanpeng:main
Choose a base branch
from
MotorBottle:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains 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
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1859 +/- ##
========================================
- Coverage 1.21% 1.21% -0.01%
========================================
Files 145 145
Lines 12239 12309 +70
========================================
Hits 149 149
- Misses 12076 12146 +70
Partials 14 14 ☔ View full report in Codecov by Sentry. |
MotorBottle
changed the title
Add Default Options Value Override in Panel
Add Default Options Value Override Feature
Oct 1, 2024
upstream之后编译出来似乎使用上遇到问题,需要研究一下 |
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.
已实现
实现默认参数的覆盖,可以修改一些参数的默认值而无需用户主动请求指定该参数的值。使用方法为在default主题的渠道设置中,以json格式指定需要覆盖参数的模型以及其对应的参数和值。
几个问题
temperature
,max_tokens
,top_p
,frequency_penalty
,presence_penalty
,stop
,n
,stream
,num_ctx
。如需添加其它参数需前往relay/controller/text.go
编辑applyParameterOverrides
函数。close #1753
我已确认该 PR 已自测通过,相关截图如下: