Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/features/common/ai/factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const PROVIDERS = {
name: 'Anthropic',
handler: () => require("./providers/anthropic"),
llmModels: [
{ id: 'claude-3-5-sonnet-20241022', name: 'Claude 3.5 Sonnet' },
{ id: 'claude-sonnet-4-5', name: 'Claude Sonnet 4.5' },
],
sttModels: [],
},
Expand Down
8 changes: 4 additions & 4 deletions src/features/common/ai/providers/anthropic.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ async function createSTT({ apiKey, language = "en", callbacks = {}, ...config })
* Creates an Anthropic LLM instance
* @param {object} opts - Configuration options
* @param {string} opts.apiKey - Anthropic API key
* @param {string} [opts.model='claude-3-5-sonnet-20241022'] - Model name
* @param {string} [opts.model='claude-sonnet-4-5'] - Model name
* @param {number} [opts.temperature=0.7] - Temperature
* @param {number} [opts.maxTokens=4096] - Max tokens
* @returns {object} LLM instance
*/
function createLLM({ apiKey, model = "claude-3-5-sonnet-20241022", temperature = 0.7, maxTokens = 4096, ...config }) {
function createLLM({ apiKey, model = "claude-sonnet-4-5", temperature = 0.7, maxTokens = 4096, ...config }) {
const client = new Anthropic({ apiKey })

return {
Expand Down Expand Up @@ -188,14 +188,14 @@ function createLLM({ apiKey, model = "claude-3-5-sonnet-20241022", temperature =
* Creates an Anthropic streaming LLM instance
* @param {object} opts - Configuration options
* @param {string} opts.apiKey - Anthropic API key
* @param {string} [opts.model='claude-3-5-sonnet-20241022'] - Model name
* @param {string} [opts.model='claude-sonnet-4-5'] - Model name
* @param {number} [opts.temperature=0.7] - Temperature
* @param {number} [opts.maxTokens=4096] - Max tokens
* @returns {object} Streaming LLM instance
*/
function createStreamingLLM({
apiKey,
model = "claude-3-5-sonnet-20241022",
model = "claude-sonnet-4-5",
temperature = 0.7,
maxTokens = 4096,
...config
Expand Down