{
- setSelectedConfigApiParams({
- apiPort: data.value
- });
- }}/>
- }/>
+ desc={t('Open the following URL with your browser to view the API documentation') + `: http://127.0.0.1:${port}/docs. ` +
+ t('This tool’s API is compatible with OpenAI API. It can be used with any ChatGPT tool you like. Go to the settings of some ChatGPT tool, replace the \'https://api.openai.com\' part in the API address with \'') + `http://127.0.0.1:${port}` + '\'.'}
+ content={
+ {
+ setSelectedConfigApiParams({
+ apiPort: data.value
+ });
+ }} />
+ } />
{
- setSelectedConfigApiParams({
- maxResponseToken: data.value
- });
- }}/>
- }/>
+ desc={t('By default, the maximum number of tokens that can be answered in a single response, it can be changed by the user by specifying API parameters.')}
+ content={
+ {
+ setSelectedConfigApiParams({
+ maxResponseToken: data.value
+ });
+ }} />
+ } />
{
- setSelectedConfigApiParams({
- temperature: data.value
- });
- }}/>
- }/>
+ desc={t('Sampling temperature, the higher the stronger the randomness and creativity, while the lower, the more focused and deterministic it will be.')}
+ content={
+ {
+ setSelectedConfigApiParams({
+ temperature: data.value
+ });
+ }} />
+ } />
{
- setSelectedConfigApiParams({
- topP: data.value
- });
- }}/>
- }/>
+ desc={t('Consider the results of the top n% probability mass, 0.1 considers the top 10%, with higher quality but more conservative, 1 considers all results, with lower quality but more diverse.')}
+ content={
+ {
+ setSelectedConfigApiParams({
+ topP: data.value
+ });
+ }} />
+ } />
{
- setSelectedConfigApiParams({
- presencePenalty: data.value
- });
- }}/>
- }/>
+ desc={t('Positive values penalize new tokens based on whether they appear in the text so far, increasing the model\'s likelihood to talk about new topics.')}
+ content={
+ {
+ setSelectedConfigApiParams({
+ presencePenalty: data.value
+ });
+ }} />
+ } />
{
- setSelectedConfigApiParams({
- frequencyPenalty: data.value
- });
- }}/>
- }/>
+ desc={t('Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model\'s likelihood to repeat the same line verbatim.')}
+ content={
+ {
+ setSelectedConfigApiParams({
+ frequencyPenalty: data.value
+ });
+ }} />
+ } />