NanoGPT: Unhide sampling parameters
| @@ -669,7 +669,7 @@ | |||
| 669 | </span> | 669 | </span> |
| 670 | </div> | 670 | </div> |
| 671 | </div> | 671 | </div> |
| 672 | <div class="range-block" data-source="openai,claude,windowai,openrouter,ai21,scale,makersuite,mistralai,custom,cohere,perplexity,groq,01ai"> | 672 | <div class="range-block" data-source="openai,claude,windowai,openrouter,ai21,scale,makersuite,mistralai,custom,cohere,perplexity,groq,01ai,nanogpt"> |
| 673 | <div class="range-block-title" data-i18n="Temperature"> | 673 | <div class="range-block-title" data-i18n="Temperature"> |
| 674 | Temperature | 674 | Temperature |
| 675 | </div> | 675 | </div> |
| @@ -682,7 +682,7 @@ | |||
| 682 | </div> | 682 | </div> |
| 683 | </div> | 683 | </div> |
| 684 | </div> | 684 | </div> |
| 685 | <div class="range-block" data-source="openai,openrouter,custom,cohere,perplexity,groq,mistralai"> | 685 | <div class="range-block" data-source="openai,openrouter,custom,cohere,perplexity,groq,mistralai,nanogpt"> |
| 686 | <div class="range-block-title" data-i18n="Frequency Penalty"> | 686 | <div class="range-block-title" data-i18n="Frequency Penalty"> |
| 687 | Frequency Penalty | 687 | Frequency Penalty |
| 688 | </div> | 688 | </div> |
| @@ -695,7 +695,7 @@ | |||
| 695 | </div> | 695 | </div> |
| 696 | </div> | 696 | </div> |
| 697 | </div> | 697 | </div> |
| 698 | <div class="range-block" data-source="openai,openrouter,custom,cohere,perplexity,groq,mistralai"> | 698 | <div class="range-block" data-source="openai,openrouter,custom,cohere,perplexity,groq,mistralai,nanogpt"> |
| 699 | <div class="range-block-title" data-i18n="Presence Penalty"> | 699 | <div class="range-block-title" data-i18n="Presence Penalty"> |
| 700 | Presence Penalty | 700 | Presence Penalty |
| 701 | </div> | 701 | </div> |
| @@ -721,7 +721,7 @@ | |||
| 721 | </div> | 721 | </div> |
| 722 | </div> | 722 | </div> |
| 723 | </div> | 723 | </div> |
| 724 | <div class="range-block" data-source="openai,claude,openrouter,ai21,scale,makersuite,mistralai,custom,cohere,perplexity,groq,01ai"> | 724 | <div class="range-block" data-source="openai,claude,openrouter,ai21,scale,makersuite,mistralai,custom,cohere,perplexity,groq,01ai,nanogpt"> |
| 725 | <div class="range-block-title" data-i18n="Top P"> | 725 | <div class="range-block-title" data-i18n="Top P"> |
| 726 | Top P | 726 | Top P |
| 727 | </div> | 727 | </div> |
| @@ -958,7 +958,7 @@ | |||
| 958 | </div> | 958 | </div> |
| 959 | </div> | 959 | </div> |
| 960 | </div> | 960 | </div> |
| 961 | <div class="range-block" data-source="openai,openrouter,mistralai,custom,cohere,groq"> | 961 | <div class="range-block" data-source="openai,openrouter,mistralai,custom,cohere,groq,nanogpt"> |
| 962 | <div class="range-block-title justifyLeft" data-i18n="Seed"> | 962 | <div class="range-block-title justifyLeft" data-i18n="Seed"> |
| 963 | Seed | 963 | Seed |
| 964 | </div> | 964 | </div> |
| @@ -1812,6 +1812,7 @@ async function sendOpenAIRequest(type, messages, signal) { | |||
| 1812 | const isPerplexity = oai_settings.chat_completion_source == chat_completion_sources.PERPLEXITY; | 1812 | const isPerplexity = oai_settings.chat_completion_source == chat_completion_sources.PERPLEXITY; |
| 1813 | const isGroq = oai_settings.chat_completion_source == chat_completion_sources.GROQ; | 1813 | const isGroq = oai_settings.chat_completion_source == chat_completion_sources.GROQ; |
| 1814 | const is01AI = oai_settings.chat_completion_source == chat_completion_sources.ZEROONEAI; | 1814 | const is01AI = oai_settings.chat_completion_source == chat_completion_sources.ZEROONEAI; |
| 1815 | const isNano = oai_settings.chat_completion_source == chat_completion_sources.NANOGPT; | ||
| 1815 | const isTextCompletion = isOAI && textCompletionModels.includes(oai_settings.openai_model); | 1816 | const isTextCompletion = isOAI && textCompletionModels.includes(oai_settings.openai_model); |
| 1816 | const isQuiet = type === 'quiet'; | 1817 | const isQuiet = type === 'quiet'; |
| 1817 | const isImpersonate = type === 'impersonate'; | 1818 | const isImpersonate = type === 'impersonate'; |
| @@ -1971,7 +1972,7 @@ async function sendOpenAIRequest(type, messages, signal) { | |||
| 1971 | delete generate_data.stop; | 1972 | delete generate_data.stop; |
| 1972 | } | 1973 | } |
| 1973 | 1974 | ||
| 1974 | if ((isOAI || isOpenRouter || isMistral || isCustom || isCohere) && oai_settings.seed >= 0) { | 1975 | if ((isOAI || isOpenRouter || isMistral || isCustom || isCohere || isNano) && oai_settings.seed >= 0) { |
| 1975 | generate_data['seed'] = oai_settings.seed; | 1976 | generate_data['seed'] = oai_settings.seed; |
| 1976 | } | 1977 | } |
| 1977 | 1978 | ||