Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
[BOT] [Cherry Pick] Head Repo (#278)
Browse files Browse the repository at this point in the history
* chore: fix typo in next.config.mjs (ChatGPTNextWeb#4072)

verison -> version

* Fix temperature range (ChatGPTNextWeb#4083)

---------

Co-authored-by: eltociear <[email protected]>
Co-authored-by: WqyJh <[email protected]>
  • Loading branch information
3 people authored Feb 20, 2024
1 parent 430bc06 commit fc51375
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/store/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const ModalConfigValidator = {
return limitNumber(x, -2, 2, 0);
},
temperature(x: number) {
return limitNumber(x, 0, 1, 1);
return limitNumber(x, 0, 2, 1);
},
top_p(x: number) {
return limitNumber(x, 0, 1, 1);
Expand Down
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if (mode !== "export") {

nextConfig.rewrites = async () => {
const ret = [
// adjust for previous verison directly using "/api/proxy/" as proxy base route
// adjust for previous version directly using "/api/proxy/" as proxy base route
{
source: "/api/proxy/v1/:path*",
destination: "https://api.openai.com/v1/:path*",
Expand Down

0 comments on commit fc51375

Please sign in to comment.