-
Notifications
You must be signed in to change notification settings - Fork 60.2k
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
update: cutomize #4969
update: cutomize #4969
Conversation
Someone is attempting to deploy a commit to the NextChat Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughThe recent changes include commenting out the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Outside diff range, codebase verification and nitpick comments (1)
public/masks.json (1)
732-762
: Discrepancy insendMemory
Attribute for "網際網路寫手"The
sendMemory
attribute for the mask "網際網路寫手" is set totrue
instead offalse
as shown in the initial review snippet.
- Location:
public/masks.json
- Attribute:
sendMemory
- Expected Value:
false
- Actual Value:
true
Analysis chain
Validate context and modelConfig for "網際網路寫手".
Ensure that the context and modelConfig for the mask "網際網路寫手" are correctly defined and consistent.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "網際網路寫手". # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-3.5-turbo public/masks.jsonLength of output: 497
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "網際網路寫手". # Test: Ensure `model` attribute matches the expected value. rg '"model": "gpt-3.5-turbo"' -A 10 public/masks.json # Test: Ensure `context` attribute is properly defined for "網際網路寫手". rg -A 15 '"name": "網際網路寫手"' public/masks.jsonLength of output: 11553
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (4)
- app/components/new-chat.tsx (1 hunks)
- app/components/sidebar.tsx (2 hunks)
- app/store/config.ts (1 hunks)
- public/masks.json (1 hunks)
Files not summarized due to errors (1)
- public/masks.json: Error: Message exceeds token limit
Files skipped from review due to trivial changes (2)
- app/components/new-chat.tsx
- app/components/sidebar.tsx
Additional comments not posted (33)
app/store/config.ts (1)
51-51
: Verify the new model name.Ensure that "gpt-4o" is a valid model name and that it is supported by the application. Verify its usage in the codebase to ensure consistency.
Verification successful
Verified the new model name.
The model name "gpt-4o" is consistently used across the codebase, indicating that it is a valid and supported model.
app/utils.ts
app/store/config.ts
app/constant.ts
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the usage of the new model name "gpt-4o" in the codebase. # Test: Search for the new model name. Expect: Consistent usage of "gpt-4o". rg --type python -A 5 $'"gpt-4o"'Length of output: 65
Script:
#!/bin/bash # Description: Verify the usage of the new model name "gpt-4o" in the codebase. # Test: Search for the new model name. Expect: Consistent usage of "gpt-4o". rg "gpt-4o"Length of output: 248
public/masks.json (32)
944-974
: Validate context and modelConfig for "Expert".Ensure that the context and modelConfig for the mask "Expert"
849-875
: Validate context and modelConfig for "GitHub Copilot".Ensure that the context and modelConfig for the mask "GitHub Copilot" are correctly defined and consistent.
Verification successful
Context and modelConfig for "GitHub Copilot" are correctly defined and consistent.
- The
model
attribute matches the expected value "gpt-4".- The context includes all required attributes and details.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "GitHub Copilot". # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-4 public/masks.jsonLength of output: 489
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "GitHub Copilot". # Test: Ensure `model` attribute matches the expected value "gpt-4". rg '"model": "gpt-4"' public/masks.json -A 10 # Test: Ensure the context for "GitHub Copilot" includes the required attributes. rg '"name": "GitHub Copilot"' public/masks.json -A 20Length of output: 5348
252-276
: Validate context and modelConfig for "心理医生".Ensure that the context and modelConfig for the mask "心理医生" are correctly defined and consistent.
Verification successful
Validation successful for "心理医生" context and modelConfig
- The
model
attribute is correctly set togpt-3.5-turbo
.- The
context
andmodelConfig
attributes are correctly defined and consistent.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "心理医生". # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-3.5-turbo public/masks.jsonLength of output: 497
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "心理医生". # Search for the `model` attribute with the value `gpt-3.5-turbo` echo "Searching for model attribute with value 'gpt-3.5-turbo':" rg '"model": "gpt-3.5-turbo"' public/masks.json # Extract and display the context and modelConfig attributes echo -e "\nExtracting context and modelConfig for '心理医生':" rg -A 20 '"name": "心理医生"' public/masks.jsonLength of output: 2679
146-170
: Validate context and modelConfig for "英专写手".Ensure that the context and modelConfig for the mask "英专写手" are correctly defined and consistent.
Verification successful
The context and modelConfig for "英专写手" are correctly defined and consistent.
- The
model
attribute is set to "gpt-3.5-turbo".- The
context
attribute is appropriately defined.- The
modelConfig
attributes are correctly populated.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "英专写手". # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-3.5-turbo public/masks.jsonLength of output: 497
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "英专写手". # Search for the "英专写手" entry and display the relevant JSON structure rg -A 20 '"name": "英专写手"' public/masks.jsonLength of output: 934
277-307
: Validate context and modelConfig for "创业点子王".Ensure that the context and modelConfig for the mask "创业点子王" are correctly defined and consistent.
Verification successful
Context and modelConfig for "创业点子王" are correctly defined and consistent.
- The
context
includes two entries with appropriate roles and content.- The
modelConfig
parameters are set correctly, matching the provided snippet.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "创业点子王". # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-3.5-turbo public/masks.jsonLength of output: 497
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "创业点子王". # Search for the mask by name and extract the relevant attributes rg -A 20 '"name": "创业点子王"' public/masks.jsonLength of output: 1082
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "创业点子王". # Search for the mask by name and extract more lines to capture the full definition rg -A 50 '"name": "创业点子王"' public/masks.jsonLength of output: 2238
46-70
: Validate context and modelConfig for "文案写手".Ensure that the context and modelConfig for the mask "文案写手" are correctly defined and consistent.
Verification successful
Validation successful for "文案写手" mask.
The context and modelConfig for "文案写手" are correctly defined and consistent.
- The
model
attribute is set to "gpt-3.5-turbo".- The context and other configuration parameters are correctly defined.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "文案写手". # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-3.5-turbo public/masks.jsonLength of output: 497
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "文案写手". # Test: Ensure `model` attribute matches the expected value. rg '"model": "gpt-3.5-turbo"' public/masks.json -A 10 # Test: Ensure the context for "文案写手" is correctly defined. rg '"name": "文案写手"' public/masks.json -A 20Length of output: 11684
196-220
: Validate context and modelConfig for "小红书写手".Ensure that the context and modelConfig for the mask "小红书写手" are correctly defined and consistent.
Verification successful
Context and modelConfig for "小红书写手" are correctly defined and consistent.
The
model
attribute is set to"gpt-3.5-turbo"
, and other attributes are configured as expected.
modelConfig
:temperature
,max_tokens
,presence_penalty
,frequency_penalty
,sendMemory
,historyMessageCount
,compressMessageLengthThreshold
context
: Includes the required fields and content as specified.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "小红书写手". # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-3.5-turbo public/masks.jsonLength of output: 497
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "小红书写手". # Test 1: Ensure `model` attribute matches the expected value. rg '"name": "小红书写手"' -A 20 public/masks.json # Test 2: Validate the `context` and `modelConfig` attributes. rg '"name": "小红书写手"' -A 50 public/masks.jsonLength of output: 3233
2-45
: Validate context and modelConfig for "以文搜图".Ensure that the context and modelConfig for the mask "以文搜图" are correctly defined and consistent.
Verification successful
Context and modelConfig for "以文搜图" are correctly defined and consistent.
- The
model
attribute is set to "gpt-3.5-turbo".- The context entries match the provided snippet.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "以文搜图". # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-3.5-turbo public/masks.jsonLength of output: 497
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "以文搜图". # Test: Ensure the `model` attribute is set to "gpt-3.5-turbo". rg '"model": "gpt-3.5-turbo"' public/masks.json -A 10 # Test: Ensure the context for "以文搜图" is correctly defined. rg '"name": "以文搜图"' public/masks.json -A 50Length of output: 13055
71-95
: Validate context and modelConfig for "机器学习".Ensure that the context and modelConfig for the mask "机器学习" are correctly defined and consistent.
Verification successful
The context and modelConfig for "机器学习" are correctly defined and consistent.
- The
context
includes an entry with id "ml-0", role "user", and relevant content.- The
modelConfig
includes the "model" attribute set to "gpt-3.5-turbo" and other attributes like temperature, max_tokens, presence_penalty, frequency_penalty, sendMemory, historyMessageCount, and compressMessageLengthThreshold.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "机器学习". # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-3.5-turbo public/masks.jsonLength of output: 497
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "机器学习". # Test: Ensure `model` attribute matches the expected value. rg '"model": "gpt-3.5-turbo"' -A 10 public/masks.json # Test: Ensure the context for "机器学习" is correctly defined. rg '"name": "机器学习"' -A 20 public/masks.jsonLength of output: 11589
876-918
: Validate context and modelConfig for "Prompt Improvement".Ensure that the context and modelConfig for the mask "Prompt Improvement" are correctly defined and consistent.
Verification successful
Context and modelConfig for "Prompt Improvement" are correctly defined and consistent.
- The
context
andmodelConfig
attributes match the provided code snippet.- No discrepancies were found in the attributes.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "Prompt Improvement". # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-4 public/masks.jsonLength of output: 489
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "Prompt Improvement". # Search for the "Prompt Improvement" mask and extract its context and modelConfig attributes. rg -A 50 '"name": "Prompt Improvement"' public/masks.jsonLength of output: 6190
1-1
: Ensure JSON format validity.Make sure the JSON structure is valid and properly formatted.
Verification successful
The JSON structure is valid and the content is consistent.
The JSON file
public/masks.json
has been verified for syntax validity and content consistency. The structure and data appear correct, with no missing fields or syntax errors.
- The JSON structure is valid.
- The data is consistent across different language categories.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the JSON structure for validity. # Test: Use jq to validate JSON. Expect: No errors. jq empty public/masks.jsonLength of output: 28
Script:
#!/bin/bash # Description: Check the content of public/masks.json for data consistency and completeness. # Use jq to extract and review the structure of the JSON data. jq . public/masks.jsonLength of output: 42213
121-145
: Validate context and modelConfig for "职业顾问".Ensure that the context and modelConfig for the mask "职业顾问" are correctly defined and consistent.
Verification successful
Validation Successful: Context and modelConfig for "职业顾问" are correctly defined and consistent.
- All specified attributes (
model
,temperature
,max_tokens
,presence_penalty
,frequency_penalty
,sendMemory
,historyMessageCount
,compressMessageLengthThreshold
) match the expected values.- The context for "职业顾问" is correctly defined.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "职业顾问". # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-3.5-turbo public/masks.jsonLength of output: 497
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "职业顾问". # Test: Ensure `model` attribute matches the expected value. rg '"model": "gpt-3.5-turbo"' public/masks.json # Test: Ensure `temperature` attribute matches the expected value. rg '"temperature": 1' public/masks.json # Test: Ensure `max_tokens` attribute matches the expected value. rg '"max_tokens": 2000' public/masks.json # Test: Ensure `presence_penalty` attribute matches the expected value. rg '"presence_penalty": 0' public/masks.json # Test: Ensure `frequency_penalty` attribute matches the expected value. rg '"frequency_penalty": 0' public/masks.json # Test: Ensure `sendMemory` attribute matches the expected value. rg '"sendMemory": true' public/masks.json # Test: Ensure `historyMessageCount` attribute matches the expected value. rg '"historyMessageCount": 4' public/masks.json # Test: Ensure `compressMessageLengthThreshold` attribute matches the expected value. rg '"compressMessageLengthThreshold": 1000' public/masks.json # Test: Ensure the context for "职业顾问" is defined correctly. rg '"name": "职业顾问"' -A 10 public/masks.jsonLength of output: 10100
425-469
: Validate context and modelConfig for "以文搜圖" (Traditional Chinese).Ensure that the context and modelConfig for the mask "以文搜圖" (Traditional Chinese) are correctly defined and consistent.
Verification successful
Verification successful: Context and modelConfig for "以文搜圖" are correctly defined.
The
model
attribute matches the expected value "gpt-3.5-turbo", and the context configuration is consistent and well-defined.
model
: "gpt-3.5-turbo"context
: Correctly defined and consistent with the expected values.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "以文搜圖" (Traditional Chinese). # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-3.5-turbo public/masks.jsonLength of output: 497
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "以文搜圖" (Traditional Chinese). # Test: Ensure `model` attribute matches the expected value and validate context. rg -A 20 '"name": "以文搜圖"' public/masks.jsonLength of output: 897
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "以文搜圖" (Traditional Chinese). # Test: Ensure `model` attribute matches the expected value and validate the full context and modelConfig. rg -A 50 '"name": "以文搜圖"' public/masks.jsonLength of output: 2278
339-393
: Validate context and modelConfig for "心灵导师".Ensure that the context and modelConfig for the mask "心灵导师" are correctly defined and consistent.
Verification successful
Validation successful for the context and modelConfig of "心灵导师".
The context and modelConfig for the "心灵导师" mask are correctly defined and consistent.
- Model attribute is set to "gpt-3.5-turbo".
- Other configuration parameters are present and correctly set.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "心灵导师". # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-3.5-turbo public/masks.jsonLength of output: 497
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "心灵导师". # Search for the "心灵导师" mask and its configuration in the JSON file. rg -A 20 '"name": "心灵导师"' public/masks.jsonLength of output: 828
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "心灵导师". # Search for the "心灵导师" mask and its configuration in the JSON file with extended context lines. rg -A 50 '"name": "心灵导师"' public/masks.jsonLength of output: 1946
645-675
: Validate context and modelConfig for "簡歷寫手".Ensure that the context and modelConfig for the mask "簡歷寫手" are correctly defined and consistent.
Verification successful
Verification Successful: The context and modelConfig for "簡歷寫手" are correctly defined and consistent.
- The
model
attribute withinmodelConfig
is set to "gpt-3.5-turbo".- All other attributes within
modelConfig
are present and appear correct.- The context includes appropriate entries for "user" and "assistant".
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "簡歷寫手". # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-3.5-turbo public/masks.jsonLength of output: 497
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "簡歷寫手". # Find the entry for "簡歷寫手" and extract relevant portions for inspection. rg -A 30 '"name": "簡歷寫手"' public/masks.jsonLength of output: 1472
676-700
: Validate context and modelConfig for "心理醫生".Ensure that the context and modelConfig for the mask "心理醫生" are correctly defined and consistent.
Verification successful
Validate context and modelConfig for "心理醫生".
The context and modelConfig for "心理醫生" are correctly defined and consistent with the expected values.
"model": "gpt-3.5-turbo"
"temperature": 1
"max_tokens": 2000
"presence_penalty": 0
"frequency_penalty": 0
"sendMemory": true
"historyMessageCount": 4
"compressMessageLengthThreshold": 1000
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "心理醫生". # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-3.5-turbo public/masks.jsonLength of output: 497
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "心理醫生". # Test: Ensure the `model` attribute is correctly set to "gpt-3.5-turbo". rg '"model": "gpt-3.5-turbo"' public/masks.json -A 10 # Test: Ensure the context for "心理醫生" is correctly defined. rg '"name": "心理醫生"' public/masks.json -A 20Length of output: 12041
701-731
: Validate context and modelConfig for "創業點子王".Ensure that the context and modelConfig for the mask "創業點子王" are correctly defined and consistent.
Verification successful
Validate context and modelConfig for "創業點子王".
The
modelConfig
andcontext
for "創業點子王" are correctly defined and consistent with the expected values.
modelConfig:
- model: "gpt-3.5-turbo"
- temperature: 1
- max_tokens: 2000
- presence_penalty: 0
- frequency_penalty: 0
- sendMemory: false
- historyMessageCount: 4
- compressMessageLengthThreshold: 1000
context:
- The context is correctly defined with appropriate roles and content.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "創業點子王". # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-3.5-turbo public/masks.jsonLength of output: 497
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "創業點子王". # Test: Ensure `model` attribute matches the expected value and validate context. rg -A 10 '"model": "gpt-3.5-turbo"' public/masks.json rg -A 10 '"context": \[' public/masks.jsonLength of output: 39100
221-251
: Validate context and modelConfig for "简历写手".Ensure that the context and modelConfig for the mask "简历写手" are correctly defined and consistent.
570-594
: Validate context and modelConfig for "英專寫手".Ensure that the context and modelConfig for the mask "英專寫手" are correctly defined and consistent.
Verification successful
Context and modelConfig for "英專寫手" are correctly defined and consistent.
- The
model
attribute is set to "gpt-3.5-turbo".- Other attributes (
temperature
,max_tokens
,presence_penalty
,frequency_penalty
,sendMemory
,historyMessageCount
,compressMessageLengthThreshold
) are correctly defined.- The context is appropriately defined.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "英專寫手". # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-3.5-turbo public/masks.jsonLength of output: 497
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "英專寫手". # Test: Ensure `model` attribute matches the expected value. rg -A 5 '"model": "gpt-3.5-turbo"' public/masks.jsonLength of output: 6279
Script:
#!/bin/bash # Description: Validate the full context and modelConfig for "英專寫手". # Search for the entry of "英專寫手" and display the entire block including context and modelConfig. rg -A 20 '"name": "英專寫手"' public/masks.jsonLength of output: 937
919-943
: Validate context and modelConfig for "CAN".Ensure that the context and modelConfig for the mask "CAN" are correctly defined and consistent.
Verification successful
The context and modelConfig for "CAN" are correctly defined and consistent.
- The
model
attribute is correctly set to"gpt-3.5-turbo"
.- The
context
is properly defined with the expected structure.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "CAN". # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-3.5-turbo public/masks.jsonLength of output: 497
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "CAN". # Test: Ensure `model` attribute matches the expected value. jq '.[] | select(.name == "CAN") | .modelConfig.model' public/masks.json # Test: Ensure the context is correctly defined. jq '.[] | select(.name == "CAN") | .context' public/masks.jsonLength of output: 291
Script:
#!/bin/bash # Description: Inspect the structure of public/masks.json to understand its format. # Display the first 20 lines of the JSON file to understand its structure. head -n 20 public/masks.jsonLength of output: 764
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "CAN". # Test: Ensure `model` attribute matches the expected value. jq '.. | objects | select(.name == "CAN") | .modelConfig.model' public/masks.json # Test: Ensure the context is correctly defined. jq '.. | objects | select(.name == "CAN") | .context' public/masks.jsonLength of output: 1619
595-619
: Validate context and modelConfig for "語言檢測器".Ensure that the context and modelConfig for the mask "語言檢測器" are correctly defined and consistent.
Verification successful
Context and modelConfig for "語言檢測器" are correctly defined and consistent.
- The
model
attribute is correctly set to "gpt-3.5-turbo".- The
context
array has the expected structure and content.- The
modelConfig
object contains the appropriate attributes and values.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "語言檢測器". # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-3.5-turbo public/masks.jsonLength of output: 497
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "語言檢測器". # Search for the mask named "語言檢測器" and extract the relevant JSON block for validation. rg -A 20 '"name": "語言檢測器"' public/masks.json # Validate the `model` attribute value. rg -A 5 '"model": "gpt-3.5-turbo"' public/masks.json # Validate the `context` attribute structure and content. rg -A 10 '"context": \[' public/masks.json # Validate the `modelConfig` attribute structure and content. rg -A 15 '"modelConfig": \{' public/masks.jsonLength of output: 51971
520-544
: Validate context and modelConfig for "後勤工作".Ensure that the context and modelConfig for the mask "後勤工作" are correctly defined and consistent.
Verification successful
Validation successful: The
model
attribute for "後勤工作" is correctly set to "gpt-3.5-turbo".
- The
modelConfig.model
attribute for the mask "後勤工作" is correctly defined as "gpt-3.5-turbo".Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "後勤工作". # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-3.5-turbo public/masks.jsonLength of output: 497
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "後勤工作". # Test: Ensure `model` attribute matches the expected value. jq '.[] | select(.name == "後勤工作") | .modelConfig.model' public/masks.jsonLength of output: 151
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "後勤工作". # Test: Ensure `model` attribute matches the expected value. jq '.masks[] | select(.name == "後勤工作") | .modelConfig.model' public/masks.jsonLength of output: 150
Script:
#!/bin/bash # Description: Inspect the top-level structure of the JSON file. # Output the top-level keys of the JSON file. jq 'keys' public/masks.jsonLength of output: 54
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "後勤工作". # Test: Ensure `model` attribute matches the expected value. jq '.tw[] | select(.name == "後勤工作") | .modelConfig.model' public/masks.jsonLength of output: 93
763-817
: Validate context and modelConfig for "心靈導師".Ensure that the context and modelConfig for the mask "心靈導師" are correctly defined and consistent.
Verification successful
Context and modelConfig for "心靈導師" are correctly defined and consistent.
The
model
attribute is correctly set to "gpt-3.5-turbo", and thecontext
array is well-structured and populated with appropriate content.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "心靈導師". # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-3.5-turbo public/masks.jsonLength of output: 497
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "心靈導師". # Test: Ensure `model` attribute matches the expected value and validate the context structure and content. jq '.[] | select(.name == "心靈導師") | .modelConfig.model, .context' public/masks.jsonLength of output: 161
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "心靈導師". # Test: Ensure `model` attribute matches the expected value and validate the context structure and content. jq 'to_entries[] | select(.value.name == "心靈導師") | .value.modelConfig.model, .value.context' public/masks.jsonLength of output: 188
Script:
#!/bin/bash # Description: Inspect the top-level structure of the JSON file to understand its layout. # Print the top-level structure of the JSON file. jq 'keys' public/masks.jsonLength of output: 54
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "心靈導師" under the "tw" key. # Test: Ensure `model` attribute matches the expected value and validate the context structure and content. jq '.tw[] | select(.name == "心靈導師") | .modelConfig.model, .context' public/masks.jsonLength of output: 964
96-120
: Validate context and modelConfig for "后勤工作".Ensure that the context and modelConfig for the mask "后勤工作" are correctly defined and consistent.
Verification successful
Validation of context and modelConfig for "后勤工作"
The context and modelConfig for the mask "后勤工作" are correctly defined and consistent. The model is set to "gpt-3.5-turbo", and the attributes within
modelConfig
andcontext
are as expected.
modelConfig
:
- "model": "gpt-3.5-turbo"
- "temperature": 1
- "max_tokens": 2000
- "presence_penalty": 0
- "frequency_penalty": 0
- "sendMemory": true
- "historyMessageCount": 4
- "compressMessageLengthThreshold": 1000
context
:
- "id": "work-0"
- "role": "user"
- "content": "我要你担任后勤人员。我将为您提供即将举行的活动的详细信息,例如参加人数、地点和其他相关因素。您的职责是为活动制定有效的后勤计划,其中考虑到事先分配资源、交通设施、餐饮服务等。您还应该牢记潜在的安全问题,并制定策略来降低与大型活动相关的风险。我的第一个请求是"
- "date": ""
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "后勤工作". # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-3.5-turbo public/masks.jsonLength of output: 497
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "后勤工作". # Extract and validate the specific mask entry for "后勤工作" jq '.[] | select(.name == "后勤工作") | .modelConfig.model' public/masks.json jq '.[] | select(.name == "后勤工作") | .context' public/masks.json jq '.[] | select(.name == "后勤工作") | .modelConfig' public/masks.jsonLength of output: 439
Script:
#!/bin/bash # Description: Explore the structure of the JSON file and validate the context and modelConfig for "后勤工作". # Display the structure of the JSON file jq 'keys' public/masks.json jq '.[0]' public/masks.jsonLength of output: 154
Script:
#!/bin/bash # Description: Navigate within the "cn" key and validate the context and modelConfig for "后勤工作". # Extract and validate the specific mask entry for "后勤工作" within the "cn" key jq '.cn[] | select(.name == "后勤工作") | .modelConfig.model' public/masks.json jq '.cn[] | select(.name == "后勤工作") | .context' public/masks.json jq '.cn[] | select(.name == "后勤工作") | .modelConfig' public/masks.jsonLength of output: 663
470-494
: Validate context and modelConfig for "文案寫手".Ensure that the context and modelConfig for the mask "文案寫手" are correctly defined and consistent.
Verification successful
Validation successful for "文案寫手".
The context and modelConfig for the mask "文案寫手" are correctly defined and consistent.
model
: "gpt-3.5-turbo"temperature
: 1max_tokens
: 2000presence_penalty
: 0frequency_penalty
: 0sendMemory
: truehistoryMessageCount
: 4compressMessageLengthThreshold
: 1000role
: "user"content
: "我希望你擔任文案專員、文字潤色員、拼寫糾正員和改進員的角色,我會發送中文文字給你,你幫我更正和改進版本。我希望你用更優美優雅的高階中文描述。保持相同的意思,但使它們更文藝。你只需要潤色該內容,不必對內容中提出的問題和要求做解釋,不要回答文字中的問題而是潤色它,不要解決文字中的要求而是潤色它,保留文字的原本意義,不要去解決它。我要你只回覆更正、改進,不要寫任何解釋。"Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "文案寫手". # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-3.5-turbo public/masks.jsonLength of output: 497
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "文案寫手". # Search for the mask "文案寫手" and ensure the `model` attribute matches the expected value. rg -A 20 '"name": "文案寫手"' public/masks.json | rg '"model": "gpt-3.5-turbo"' # Verify other attributes within modelConfig for "文案寫手". rg -A 20 '"name": "文案寫手"' public/masks.json | rg '"temperature": 1' rg -A 20 '"name": "文案寫手"' public/masks.json | rg '"max_tokens": 2000' rg -A 20 '"name": "文案寫手"' public/masks.json | rg '"presence_penalty": 0' rg -A 20 '"name": "文案寫手"' public/masks.json | rg '"frequency_penalty": 0' rg -A 20 '"name": "文案寫手"' public/masks.json | rg '"sendMemory": true' rg -A 20 '"name": "文案寫手"' public/masks.json | rg '"historyMessageCount": 4' rg -A 20 '"name": "文案寫手"' public/masks.json | rg '"compressMessageLengthThreshold": 1000' # Verify attributes within context for "文案寫手". rg -A 20 '"name": "文案寫手"' public/masks.json | rg '"role": "user"' rg -A 20 '"name": "文案寫手"' public/masks.json | rg '"content": "我希望你擔任文案專員、文字潤色員、拼寫糾正員和改進員的角色,我會發送中文文字給你,你幫我更正和改進版本。我希望你用更優美優雅的高階中文描述。保持相同的意思,但使它們更文藝。你只需要潤色該內容,不必對內容中提出的問題和要求做解釋,不要回答文字中的問題而是潤色它,不要解決文字中的要求而是潤色它,保留文字的原本意義,不要去解決它。我要你只回覆更正、改進,不要寫任何解釋。"'Length of output: 1508
495-519
: Validate context and modelConfig for "機器學習".Ensure that the context and modelConfig for the mask "機器學習" are correctly defined and consistent.
394-424
: Validate context and modelConfig for "越狱模式 [Jailbreak]".Ensure that the context and modelConfig for the mask "越狱模式 [Jailbreak]" are correctly defined and consistent.
171-195
: Validate context and modelConfig for "语言检测器".Ensure that the context and modelConfig for the mask "语言检测器" are correctly defined and consistent.
Verification successful
Validation successful for "语言检测器" mask.
The
context
andmodelConfig
for the "语言检测器" mask are correctly defined and consistent with the expected values.
model
:gpt-3.5-turbo
temperature
:1
max_tokens
:2000
presence_penalty
:0
frequency_penalty
:0
sendMemory
:false
historyMessageCount
:4
compressMessageLengthThreshold
:1000
The
context
structure is also as expected.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "语言检测器". # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-3.5-turbo public/masks.jsonLength of output: 497
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "语言检测器". # Test: Ensure `model` attribute matches the expected value. rg '"model": "gpt-3.5-turbo"' public/masks.json -A 10 # Test: Ensure `context` attribute matches the expected structure. rg '"context": \[' public/masks.json -A 20 # Test: Ensure other `modelConfig` attributes are as expected. rg '"temperature": 1' public/masks.json -A 10 rg '"max_tokens": 2000' public/masks.json -A 10 rg '"presence_penalty": 0' public/masks.json -A 10 rg '"frequency_penalty": 0' public/masks.json -A 10Length of output: 93524
308-338
: Validate context and modelConfig for "互联网写手".Ensure that the context and modelConfig for the mask "互联网写手" are correctly defined and consistent.
Verification successful
The context and modelConfig for "互联网写手" are correctly defined and consistent.
- The
model
attribute is correctly set togpt-3.5-turbo
for "互联网写手" in thecn
section.- The context object structure and values for "互联网写手" in the
cn
section are as expected.No issues found in the
en
andtw
sections as they do not contain the "互联网写手" mask.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "互联网写手". # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-3.5-turbo public/masks.jsonLength of output: 497
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "互联网写手". # Test: Ensure `model` attribute matches the expected value. jq '.[] | select(.name == "互联网写手") | .modelConfig.model' public/masks.json # Test: Validate the context object structure and values. jq '.[] | select(.name == "互联网写手") | .context' public/masks.jsonLength of output: 295
Script:
#!/bin/bash # Description: Inspect the structure of public/masks.json and validate the context and modelConfig for "互联网写手". # Step 1: Inspect overall structure of public/masks.json. jq 'keys' public/masks.json # Step 2: Ensure `model` attribute matches the expected value for "互联网写手". jq '.[].masks[] | select(.name == "互联网写手") | .modelConfig.model' public/masks.json # Step 3: Validate the context object structure and values for "互联网写手". jq '.[].masks[] | select(.name == "互联网写手") | .context' public/masks.jsonLength of output: 368
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "互联网写手". # Step 1: Ensure `model` attribute matches the expected value for "互联网写手". jq '.[].masks[] | select(.name == "互联网写手") | .modelConfig.model' public/masks.json # Step 2: Validate the context object structure and values for "互联网写手". jq '.[].masks[] | select(.name == "互联网写手") | .context' public/masks.jsonLength of output: 313
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "互联网写手" in each language section. # Step 1: Ensure `model` attribute matches the expected value for "互联网写手". for lang in cn en tw; do echo "Inspecting modelConfig for language: $lang" jq --arg lang "$lang" '.[$lang].masks[] | select(.name == "互联网写手") | .modelConfig.model' public/masks.json done # Step 2: Validate the context object structure and values for "互联网写手". for lang in cn en tw; do echo "Inspecting context for language: $lang" jq --arg lang "$lang" '.[$lang].masks[] | select(.name == "互联网写手") | .context' public/masks.json doneLength of output: 1703
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "互联网写手" in each language section. # Step 1: Ensure `model` attribute matches the expected value for "互联网写手". for lang in cn en tw; do echo "Inspecting modelConfig for language: $lang" jq --arg lang "$lang" '.[$lang][] | select(.name == "互联网写手") | .modelConfig.model' public/masks.json done # Step 2: Validate the context object structure and values for "互联网写手". for lang in cn en tw; do echo "Inspecting context for language: $lang" jq --arg lang "$lang" '.[$lang][] | select(.name == "互联网写手") | .context' public/masks.json doneLength of output: 1649
818-848
: Validate context and modelConfig for "越獄模式 [Jailbreak]" (Traditional Chinese).Ensure that the context and modelConfig for the mask "越獄模式 [Jailbreak]" (Traditional Chinese) are correctly defined and consistent.
620-644
: Validate context and modelConfig for "小紅書寫手".Ensure that the context and modelConfig for the mask "小紅書寫手" are correctly defined and consistent.
Verification successful
Context and modelConfig for "小紅書寫手" are correctly defined and consistent.
- Context: The context attribute contains an array with a single object defining the task as expected.
- ModelConfig: The modelConfig attribute is correctly set with the model "gpt-3.5-turbo" and other parameters.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Validate the context and modelConfig for "小紅書寫手". # Test: Ensure `model` attribute matches the expected value. rg --json --field model --value gpt-3.5-turbo public/masks.jsonLength of output: 497
Script:
#!/bin/bash # Description: Validate context and modelConfig for "小紅書寫手". # Extract and validate the specific mask entry for "小紅書寫手" jq '.[] | select(.name == "小紅書寫手") | {context: .context, modelConfig: .modelConfig}' public/masks.jsonLength of output: 180
Script:
#!/bin/bash # Description: Validate context and modelConfig for "小紅書寫手". # Extract and validate the specific mask entry for "小紅書寫手" jq '.[] | select(.name == "小紅書寫手") | {context: .context, modelConfig: .modelConfig}' public/masks.jsonLength of output: 180
Script:
#!/bin/bash # Description: Print the structure of the JSON file to understand its format. # Print the structure of the JSON file jq 'paths' public/masks.jsonLength of output: 33705
Script:
#!/bin/bash # Description: Validate context and modelConfig for "小紅書寫手". # Extract and validate the specific mask entry for "小紅書寫手" across all language keys jq 'to_entries | .[] | .value[] | select(.name == "小紅書寫手") | {context: .context, modelConfig: .modelConfig}' public/masks.jsonLength of output: 710
545-569
: Validate context and modelConfig for "職業顧問".Ensure that the context and modelConfig for the mask "職業顧問" are correctly defined and consistent.
wrong action..... ignore this plz |
Summary by CodeRabbit
New Features
Style
IconButton
component from theNewChat
component andsidebar
for cleaner UI.