mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-12 20:40:52 +00:00
fix: .startsWith on undefined
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (18.x) (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (18.x) (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
This commit is contained in:
@@ -274,6 +274,9 @@ class AI{
|
||||
if (userParams.max_tokens) {
|
||||
requestParams.max_tokens = userParams.max_tokens;
|
||||
}
|
||||
|
||||
// convert undefined to empty string so that .startsWith works
|
||||
requestParams.model = requestParams.model ?? '';
|
||||
|
||||
// convert to the correct model name if necessary
|
||||
if( requestParams.model === 'claude-3-5-sonnet'){
|
||||
|
||||
Reference in New Issue
Block a user