-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: populate engines, models and legacy settings
- Loading branch information
Showing
107 changed files
with
736 additions
and
3,681 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
import { SystemResourceInfo } from '../../types' | ||
import { physicalCpuCount } from './config' | ||
import { log } from './logger' | ||
|
||
export const getSystemResourceInfo = async (): Promise<SystemResourceInfo> => { | ||
const cpu = await physicalCpuCount() | ||
log(`[CORTEX]::CPU information - ${cpu}`) | ||
|
||
return { | ||
numCpuPhysicalCore: cpu, | ||
numCpuPhysicalCore: 0, | ||
memAvailable: 0, // TODO: this should not be 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import anthropic from './resources/anthropic.json' with { type: 'json' } | ||
import openai from './resources/openai.json' with { type: 'json' } | ||
import openrouter from './resources/openrouter.json' with { type: 'json' } | ||
import groq from './resources/groq.json' with { type: 'json' } | ||
import martian from './resources/martian.json' with { type: 'json' } | ||
import mistral from './resources/mistral.json' with { type: 'json' } | ||
import nvidia from './resources/nvidia.json' with { type: 'json' } | ||
|
||
import openaiModels from './models/openai.json' with { type: 'json' } | ||
import anthropicModels from './models/anthropic.json' with { type: 'json' } | ||
import openrouterModels from './models/openrouter.json' with { type: 'json' } | ||
import groqModels from './models/groq.json' with { type: 'json' } | ||
import martianModels from './models/martian.json' with { type: 'json' } | ||
import mistralModels from './models/mistral.json' with { type: 'json' } | ||
import nvidiaModels from './models/nvidia.json' with { type: 'json' } | ||
|
||
const engines = [anthropic, openai, openrouter, groq, mistral, martian, nvidia] | ||
const models = [ | ||
...openaiModels, | ||
...anthropicModels, | ||
...openrouterModels, | ||
...groqModels, | ||
...mistralModels, | ||
...martianModels, | ||
...nvidiaModels, | ||
] | ||
export { engines, models } |
45 changes: 6 additions & 39 deletions
45
...anthropic-extension/resources/models.json → ...anagement-extension/models/anthropic.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,41 @@ | ||
[ | ||
{ | ||
"sources": [ | ||
{ | ||
"url": "https://www.anthropic.com/" | ||
} | ||
], | ||
"id": "claude-3-opus-latest", | ||
"model": "claude-3-opus-latest", | ||
"object": "model", | ||
"name": "Claude 3 Opus Latest", | ||
"version": "1.0", | ||
"description": "Claude 3 Opus is a powerful model suitables for highly complex task.", | ||
"format": "api", | ||
"settings": {}, | ||
"parameters": { | ||
"inference_params": { | ||
"max_tokens": 4096, | ||
"temperature": 0.7, | ||
"stream": false | ||
}, | ||
"metadata": { | ||
"author": "Anthropic", | ||
"tags": ["General", "Big Context Length"] | ||
}, | ||
"engine": "anthropic" | ||
}, | ||
{ | ||
"sources": [ | ||
{ | ||
"url": "https://www.anthropic.com/" | ||
} | ||
], | ||
"id": "claude-3-5-haiku-latest", | ||
"model": "claude-3-5-haiku-latest", | ||
"object": "model", | ||
"name": "Claude 3.5 Haiku Latest", | ||
"version": "1.0", | ||
"description": "Claude 3.5 Haiku is the fastest model provides near-instant responsiveness.", | ||
"format": "api", | ||
"settings": {}, | ||
"parameters": { | ||
"inference_params": { | ||
"max_tokens": 8192, | ||
"temperature": 0.7, | ||
"stream": false | ||
}, | ||
"metadata": { | ||
"author": "Anthropic", | ||
"tags": ["General", "Big Context Length"] | ||
}, | ||
"engine": "anthropic" | ||
}, | ||
{ | ||
"sources": [ | ||
{ | ||
"url": "https://www.anthropic.com/" | ||
} | ||
], | ||
"id": "claude-3-5-sonnet-latest", | ||
"model": "claude-3-5-sonnet-latest", | ||
"object": "model", | ||
"name": "Claude 3.5 Sonnet Latest", | ||
"version": "1.0", | ||
"description": "Claude 3.5 Sonnet raises the industry bar for intelligence, outperforming competitor models and Claude 3 Opus on a wide range of evaluations, with the speed and cost of our mid-tier model, Claude 3 Sonnet.", | ||
"format": "api", | ||
"settings": {}, | ||
"parameters": { | ||
"inference_params": { | ||
"max_tokens": 8192, | ||
"temperature": 0.7, | ||
"stream": true | ||
}, | ||
"metadata": { | ||
"author": "Anthropic", | ||
"tags": ["General", "Big Context Length"] | ||
}, | ||
"engine": "anthropic" | ||
} | ||
] |
Oops, something went wrong.