Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6ad38d3

Browse files
committedMar 16, 2025·
remove dead code
1 parent 08af2dd commit 6ad38d3

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed
 

‎src/puter-js/src/modules/AI.js

-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ class AI{
4646
const modelsByProvider = {};
4747

4848
const models = await puter.drivers.call('puter-chat-completion','ai-chat','models');
49-
//console.log(models);
5049

5150
if (!models || !models.result || !Array.isArray(models.result)) {
5251
return modelsByProvider;
@@ -58,7 +57,6 @@ class AI{
5857
modelsByProvider[item.provider].push(item.id);
5958
});
6059

61-
//console.log(modelsByProvider);
6260
return modelsByProvider;
6361
}
6462

@@ -69,7 +67,6 @@ class AI{
6967
async listModelProviders() {
7068
let providers = [];
7169
const models = await puter.drivers.call('puter-chat-completion','ai-chat','models');
72-
//console.log(models);
7370

7471
if (!models || !models.result || !Array.isArray(models.result)) return providers; // if models is invalid then return empty array
7572
providers = new Set(); // Use a Set to store unique providers

‎submodules/wiki

Submodule wiki updated from f6fd3b4 to d016b7a

0 commit comments

Comments
 (0)
Please sign in to comment.