Skip to content

Commit

Permalink
fix: incorrect default max_tokens set - legacy issue (#4451)
Browse files Browse the repository at this point in the history
* fix: incorrect default max_tokens set - legacy issue

* chore: bump cortex server
  • Loading branch information
louis-menlo authored Jan 15, 2025
1 parent 4e387a7 commit 58bb1b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extensions/inference-cortex-extension/bin/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.9-rc1
1.0.9-rc2
4 changes: 2 additions & 2 deletions web/containers/ModelDropdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,10 @@ const ModelDropdown = ({
ctx_len: model?.settings.ctx_len ? defaultContextLength : undefined,
max_tokens: defaultContextLength
? Math.min(
model?.parameters.token_limit ?? 8192,
model?.parameters.max_tokens ?? 8192,
defaultContextLength
)
: model?.parameters.token_limit,
: model?.parameters.max_tokens,
}

const modelParams = {
Expand Down

0 comments on commit 58bb1b4

Please sign in to comment.