Update AI.js
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:
jelveh
2025-04-02 12:04:38 -07:00
parent fb01bb474a
commit 590973f50d
+5
View File
@@ -292,6 +292,11 @@ class AI{
requestParams.model = 'deepseek-chat';
}
// o1-mini to openrouter:openai/o1-mini
if ( requestParams.model === 'o1-mini' ) {
requestParams.model = 'openrouter:openai/o1-mini';
}
// map model to the appropriate driver
if (!requestParams.model || requestParams.model === 'gpt-4o' || requestParams.model === 'gpt-4o-mini') {
driver = 'openai-completion';