Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

✅ test: update test snapshots for i18n model description changes

Inneie935ddcbe4aa
diff --git a/packages/model-runtime/src/core/openaiCompatibleFactory/index.test.ts b/packages/model-runtime/src/core/openaiCompatibleFactory/index.test.ts
index 45f90f14bc4..d66e59f7809 100644
--- a/packages/model-runtime/src/core/openaiCompatibleFactory/index.test.ts
+++ b/packages/model-runtime/src/core/openaiCompatibleFactory/index.test.ts
@@ -2695,7 +2695,7 @@ describe('LobeOpenAICompatibleFactory', () => {
},
contextWindowTokens: 128_000,
description:
- 'ChatGPT-4o 是一款动态模型,实时更新以保持当前最新版本。它结合了强大的语言理解与生成能力,适合于大规模应用场景,包括客户服务、教育和技术支持。',
+ 'ChatGPT-4o is a dynamic model that updates in real time to stay current. It combines strong language understanding and generation, suitable for large-scale applications such as customer support, education, and technical support.',
displayName: 'GPT-4o',
enabled: true,
id: 'gpt-4o',
@@ -2734,7 +2734,7 @@ describe('LobeOpenAICompatibleFactory', () => {
},
contextWindowTokens: 200_000,
description:
- 'Claude 3 Haiku 是 Anthropic 的最快且最紧凑的模型,旨在实现近乎即时的响应。它具有快速且准确的定向性能。',
+ "Claude 3 Haiku is Anthropic’s fastest and most compact model, designed for near-instant responses with fast, accurate performance.",
displayName: 'Claude 3 Haiku',
enabled: false,
id: 'claude-3-haiku-20240307',
@@ -2790,7 +2790,7 @@ describe('LobeOpenAICompatibleFactory', () => {
deploymentName: 'gpt-4o-mini',
},
contextWindowTokens: 128_000,
- description: 'GPT-4o Mini,小型高效模型,具备与GPT-4o相似的卓越性能。',
+ description: 'GPT-4o Mini is a small, efficient model with performance similar to GPT-4o.',
displayName: 'GPT 4o Mini',
enabled: false,
id: 'gpt-4o-mini',
diff --git a/packages/model-runtime/src/core/streams/openai/__snapshots__/responsesStream.test.ts.snap b/packages/model-runtime/src/core/streams/openai/__snapshots__/responsesStream.test.ts.snap
index 566f08eb1fe..760a2d2d8d8 100644
--- a/packages/model-runtime/src/core/streams/openai/__snapshots__/responsesStream.test.ts.snap
+++ b/packages/model-runtime/src/core/streams/openai/__snapshots__/responsesStream.test.ts.snap
@@ -592,1010 +592,3 @@ exports[`OpenAIResponsesStream > should transform OpenAI stream to protocol stre
",
]
`;
-
-exports[`OpenAIResponsesStream Reasoning summary 1`] = `
-[
-
-"id: resp_684313b89200819087f27686e0c822260b502bf083132d0d
-"
-,
-
-"event: data
-"
-,
-
-"data: "in_progress"
-
-"
-,
-
-"id: resp_684313b89200819087f27686e0c822260b502bf083132d0d
-"
-,
-
-"event: data
-"
-,
-
-"data: {"type":"response.in_progress","response":{"id":"resp_684313b89200819087f27686e0c822260b502bf083132d0d","object":"response","created_at":1749226424,"status":"in_progress","error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":null,"model":"o4-mini","output":[],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":"medium","summary":"detailed"},"service_tier":"auto","store":false,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[{"type":"function","description":"a search service. Useful for when you need to answer questions about current events. Input should be a search query. Output is a JSON array of the query results","name":"lobe-web-browsing____search____builtin","parameters":{"properties":{"query":{"description":"The search query","type":"string"},"searchCategories":{"description":"The search categories you can set:","items":{"enum":["general","images","news","science","videos"],"type":"string"},"type":"array"},"searchEngines":{"description":"The search engines you can use:","items":{"enum":["google","bilibili","bing","duckduckgo","npm","pypi","github","arxiv","google scholar","z-library","reddit","imdb","brave","wikipedia","pinterest","unsplash","vimeo","youtube"],"type":"string"},"type":"array"},"searchTimeRange":{"description":"The time range you can set:","enum":["anytime","day","week","month","year"],"type":"string"}},"required":["query"],"type":"object"},"strict":true},{"type":"function","description":"A crawler can visit page content. Output is a JSON object of title, content, url and website","name":"lobe-web-browsing____crawlSinglePage____builtin","parameters":{"properties":{"url":{"description":"The url need to be crawled","type":"string"}},"required":["url"],"type":"object"},"strict":true},{"type":"function","description":"A crawler can visit multi pages. If need to visit multi website, use this one. Output is an array of JSON object of title, content, url and website","name":"lobe-web-browsing____crawlMultiPages____builtin","parameters":{"properties":{"urls":{"items":{"description":"The urls need to be crawled","type":"string"},"type":"array"}},"required":["urls"],"type":"object"},"strict":true}],"top_p":1,"truncation":"disabled","usage":null,"user":null,"metadata":{}}}
-
-"
-,
-
-"id: resp_684313b89200819087f27686e0c822260b502bf083132d0d
-"
-,
-
-"event: data
-"
-,
-
-"data: {"id":"rs_684313b9774481908ee856625f82fb8c0b502bf083132d0d","type":"reasoning","summary":[]}
-
-"
-,
-
-"id: rs_684313b9774481908ee856625f82fb8c0b502bf083132d0d
-"
-,
-
-"event: reasoning
-"
-,
-
-"data: ""
-
-"
-,
-
-"id: rs_684313b9774481908ee856625f82fb8c0b502bf083132d0d
-"
-,
-
-"event: reasoning
-"
-,
-
-"data: "**Answering a"
-
-"
-,
-
-"id: rs_684313b9774481908ee856625f82fb8c0b502bf083132d0d
-"
-,
-
-"event: reasoning
-"
-,
-
-"data: " numeric or 9.92"
-
-"
-,
-
-"id: rs_684313b9774481908ee856625f82fb8c0b502bf083132d0d
-"
-,
-
-"event: reasoning
-"
-,
-
-"data: "."
-
-"
-,
-
-"id: resp_684313b89200819087f27686e0c822260b502bf083132d0d
-"
-,
-
-"event: data
-"
-,
-
-"data: {"type":"response.reasoning_summary_text.done","item_id":"rs_684313b9774481908ee856625f82fb8c0b502bf083132d0d","output_index":0,"summary_index":0,"text":"**Answering a numeric comparison**\\n\\nThe user is asking in Chinese which number is larger: 9.1 or 9.92. This is straightforward since 9.92 is clearly larger, as it's greater than 9.1. We can respond with \\"9.92大于9.1\\" without needing to search for more information. It's a simple comparison, but Iould also add a little explanation, noting that 9.92 is indeed 0.82 more than 9.1. However, keeping it simple with \\"9.92 > 9.1\\" is perfectly fine!"}
-
-"
-,
-
-"id: resp_684313b89200819087f27686e0c822260b502bf083132d0d
-"
-,
-
-"event: data
-"
-,
-
-"data: {"type":"response.reasoning_summary_part.done","item_id":"rs_684313b9774481908ee856625f82fb8c0b502bf083132d0d","output_index":0,"summary_index":0,"part":{"type":"summary_text","text":"**Answering a numeric comparison**\\n\\nThe user is asking in Chinese which number is larger: 9.1 or 9.92. This is straightforward since 9.92 is clearly larger, as it's greater than 9.1. We can respond with \\"9.92大于9.1\\" without needing to search for more information. Is a simple comparison, but I could also add a little explanation, noting that 9.92 is indeed 0.82 more than 9.1. However, keeping it simple with \\"9.92 > 9.1\\" is perfectly fine!"}}
-
-"
-,
-
-"id: rs_6843fe13e73c8190a49d9372ef8cd46f08c019075e7c8955
-"
-,
-
-"event: reasoning
-"
-,
-
-"data: "\\n"
-
-"
-,
-
-"id: rs_6843fe13e73c8190a49d9372ef8cd46f08c019075e7c8955
-"
-,
-
-"event: reasoning
-"
-,
-
-"data: "**Exploring a mathematical sequence**"
-
-"
-,
-
-"id: rs_6843fe13e73c8190a49d9372ef8cd46f08c019075e7c8955
-"
-,
-
-"event: reasoning
-"
-,
-
-"data: " analyzing"
-
-"
-,
-
-"id: rs_684313b9774481908ee856625f82fb8c0b502bf083132d0d
-"
-,
-
-"event: text
-"
-,
-
-"data: null
-
-"
-,
-
-"id: resp_684313b89200819087f27686e0c822260b502bf083132d0d
-"
-,
-
-"event: data
-"
-,
-
-"data: {"id":"msg_684313bee2c88190b0f4b09621ad7dc60b502bf083132d0d","type":"message","status":"in_progress","content":[],"role":"assistant"}
-
-"
-,
-
-"id: resp_684313b89200819087f27686e0c822260b502bf083132d0d
-"
-,
-
-"event: data
-"
-,
-
-"data: {"type":"response.content_part.added","item_id":"msg_684313bee2c88190b0f4b09621ad7dc60b502bf083132d0d","output_index":1,"content_index":0,"part":{"type":"output_text","annotations":[],"text":""}}
-
-"
-,
-
-"id: msg_684313bee2c88190b0f4b09621ad7dc60b502bf083132d0d
-"
-,
-
-"event: text
-"
-,
-
-"data: "9.92 比 9.1 大。"
-
-"
-,
-
-"id: resp_684313b89200819087f27686e0c822260b502bf083132d0d
-"
-,
-
-"event: data
-"
-,
-
-"data: {"type":"response.output_text.done","item_id":"msg_684313bee2c88190b0f4b09621ad7dc60b502bf083132d0d","output_index":1,"content_index":0,"text":"9.92 比 9.1 大。"}
-
-"
-,
-
-"id: resp_684313b89200819087f27686e0c822260b502bf083132d0d
-"
-,
-
-"event: data
-"
-,
-
-"data: {"type":"response.content_part.done","item_id":"msg_684313bee2c88190b0f4b09621ad7dc60b502bf083132d0d","output_index":1,"content_index":0,"part":{"type":"output_text","annotations":[],"text":"9.92 比 9.1 大。"}}
-
-"
-,
-
-"id: msg_684313bee2c88190b0f4b09621ad7dc60b502bf083132d0d
-"
-,
-
-"event: text
-"
-,
-
-"data: null
-
-"
-,
-
-"id: resp_684313b89200819087f27686e0c822260b502bf083132d0d
-"
-,
-
-"event: usage
-"
-,
-
-"data: {"inputCacheMissTokens":93,"inputCachedTokens":2298,"inputTextTokens":2391,"outputReasoningTokens":128,"outputTextTokens":16,"totalInputTokens":2391,"totalOutputTokens":144,"totalTokens":2535}
-
-"
-,
-]
-`;
-
-exports[`OpenAIResponsesStream should handle chunks with undefined values gracefully 1`] = `
-[
-
-"id: resp_undefined_vals
-"
-,
-
-"event: data
-"
-,
-
-"data: "in_progress"
-
-"
-,
-
-"id: undefined
-"
-,
-
-"event: reasoning
-"
-,
-
-"data: undefined
-
-"
-,
-]
-`;
-
-exports[`OpenAIResponsesStream should handle first chunk error with FIRST_CHUNK_ERROR_KEY 1`] = `
-[
-
-"id: first_chunk_error
-"
-,
-
-"event: error
-"
-,
-
-"data: {"body":{"message":"Invalid API key","errorType":"InvalidProviderAPIKey"},"message":"Invalid API key","type":"InvalidProviderAPIKey"}
-
-"
-,
-]
-`;
-
-exports[`OpenAIResponsesStream should handle first chunk error with message object 1`] = `
-[
-
-"id: first_chunk_error
-"
-,
-
-"event: error
-"
-,
-
-"data: {"body":{"message":{"error":"API quota exceeded","code":429}},"message":"{\\"message\\":{\\"error\\":\\"API quota exceeded\\",\\"code\\":429}}","type":"ProviderBizError"}
-
-"
-,
-]
-`;
-
-exports[`OpenAIResponsesStream should handle first chunk error without message 1`] = `
-[
-
-"id: first_chunk_error
-"
-,
-
-"event: error
-"
-,
-
-"data: {"body":{"code":"rate_limit_exceeded","status":429},"message":"{\\"code\\":\\"rate_limit_exceeded\\",\\"status\\":429}","type":"ProviderBizError"}
-
-"
-,
-]
-`;
-
-exports[`OpenAIResponsesStream should handle function_call in response.output_item.added 1`] = `
-[
-
-"id: resp_test_456
-"
-,
-
-"event: data
-"
-,
-
-"data: "in_progress"
-
-"
-,
-
-"id: resp_test_456
-"
-,
-
-"event: tool_calls
-"
-,
-
-"data: [{"function":{"arguments":"{\\"location\\": \\"San Francisco\\"}","name":"get_weather"},"id":"call_abc123","index":0,"type":"function"}]
-
-"
-,
-]
-`;
-
-exports[`OpenAIResponsesStream should handle multiple annotations and accumulate citations 1`] = `
-[
-
-"id: resp_multi_citation
-"
-,
-
-"event: data
-"
-,
-
-"data: "in_progress"
-
-"
-,
-
-"id: msg_cite
-"
-,
-
-"event: text
-"
-,
-
-"data: null
-
-"
-,
-
-"id: msg_cite
-"
-,
-
-"event: text
-"
-,
-
-"data: null
-
-"
-,
-]
-`;
-
-exports[`OpenAIResponsesStream should handle multiple function_calls with incrementing index 1`] = `
-[
-
-"id: resp_multi_tool
-"
-,
-
-"event: data
-"
-,
-
-"data: "in_progress"
-
-"
-,
-
-"id: resp_multi_tool
-"
-,
-
-"event: tool_calls
-"
-,
-
-"data: [{"function":{"arguments":"{\\"param\\": \\"value1\\"}","name":"tool_one"},"id":"call_1","index":0,"type":"function"}]
-
-"
-,
-
-"id: resp_multi_tool
-"
-,
-
-"event: tool_calls
-"
-,
-
-"data: [{"function":{"arguments":"{\\"param\\": \\"value2\\"}","name":"tool_two"},"id":"call_2","index":1,"type":"function"}]
-
-"
-,
-]
-`;
-
-exports[`OpenAIResponsesStream should handle non-standard item types in output_item.added 1`] = `
-[
-
-"id: resp_other_item
-"
-,
-
-"event: data
-"
-,
-
-"data: "in_progress"
-
-"
-,
-
-"id: resp_other_item
-"
-,
-
-"event: data
-"
-,
-
-"data: {"type":"message","id":"msg_test","status":"in_progress","content":[],"role":"assistant"}
-
-"
-,
-]
-`;
-
-exports[`OpenAIResponsesStream should handle response.completed with usage 1`] = `
-[
-
-"id: resp_completed_usage
-"
-,
-
-"event: data
-"
-,
-
-"data: "in_progress"
-
-"
-,
-
-"id: resp_completed_usage
-"
-,
-
-"event: usage
-"
-,
-
-"data: {"inputCacheMissTokens":100,"inputTextTokens":100,"outputTextTokens":50,"totalInputTokens":100,"totalOutputTokens":50,"totalTokens":150}
-
-"
-,
-]
-`;
-
-exports[`OpenAIResponsesStream should handle response.completed without usage 1`] = `
-[
-
-"id: resp_completed_no_usage
-"
-,
-
-"event: data
-"
-,
-
-"data: "in_progress"
-
-"
-,
-
-"id: resp_completed_no_usage
-"
-,
-
-"event: data
-"
-,
-
-"data: {"type":"response.completed","response":{"id":"resp_completed_no_usage","status":"completed"}}
-
-"
-,
-]
-`;
-
-exports[`OpenAIResponsesStream should handle response.created event 1`] = `
-[
-
-"id: resp_test_123
-"
-,
-
-"event: data
-"
-,
-
-"data: "in_progress"
-
-"
-,
-]
-`;
-
-exports[`OpenAIResponsesStream should handle response.function_call_arguments.delta 1`] = `
-[
-
-"id: resp_delta_test
-"
-,
-
-"event: data
-"
-,
-
-"data: "in_progress"
-
-"
-,
-
-"id: resp_delta_test
-"
-,
-
-"event: tool_calls
-"
-,
-
-"data: [{"function":{"arguments":"{\\"query\\":","name":"search_web"},"id":"call_delta","index":0,"type":"function"}]
-
-"
-,
-
-"id: resp_delta_test
-"
-,
-
-"event: tool_calls
-"
-,
-
-"data: [{"function":{"arguments":" \\"OpenAI\\"}","name":"search_web"},"id":"call_delta","index":0,"type":"function"}]
-
-"
-,
-]
-`;
-
-exports[`OpenAIResponsesStream should handle response.output_item.done with citations 1`] = `
-[
-
-"id: resp_done_citation
-"
-,
-
-"event: data
-"
-,
-
-"data: "in_progress"
-
-"
-,
-
-"id: msg_final
-"
-,
-
-"event: text
-"
-,
-
-"data: null
-
-"
-,
-
-"id: msg_final
-"
-,
-
-"event: grounding
-"
-,
-
-"data: {"citations":[{"title":"Citation Title","url":"https://citation.com"}]}
-
-"
-,
-]
-`;
-
-exports[`OpenAIResponsesStream should handle response.output_item.done without citations 1`] = `
-[
-
-"id: resp_done_no_citation
-"
-,
-
-"event: data
-"
-,
-
-"data: "in_progress"
-
-"
-,
-
-"id: msg_no_cite
-"
-,
-
-"event: text
-"
-,
-
-"data: null
-
-"
-,
-]
-`;
-
-exports[`OpenAIResponsesStream should handle response.output_text.annotation.added 1`] = `
-[
-
-"id: resp_annotation
-"
-,
-
-"event: data
-"
-,
-
-"data: "in_progress"
-
-"
-,
-
-"id: msg_citation
-"
-,
-
-"event: text
-"
-,
-
-"data: null
-
-"
-,
-]
-`;
-
-exports[`OpenAIResponsesStream should handle response.output_text.delta 1`] = `
-[
-
-"id: resp_text_delta
-"
-,
-
-"event: data
-"
-,
-
-"data: "in_progress"
-
-"
-,
-
-"id: msg_123
-"
-,
-
-"event: text
-"
-,
-
-"data: "Hello "
-
-"
-,
-
-"id: msg_123
-"
-,
-
-"event: text
-"
-,
-
-"data: "world!"
-
-"
-,
-]
-`;
-
-exports[`OpenAIResponsesStream should handle response.reasoning_summary_part.added for first part 1`] = `
-[
-
-"id: resp_reasoning
-"
-,
-
-"event: data
-"
-,
-
-"data: "in_progress"
-
-"
-,
-
-"id: reasoning_1
-"
-,
-
-"event: reasoning
-"
-,
-
-"data: ""
-
-"
-,
-]
-`;
-
-exports[`OpenAIResponsesStream should handle response.reasoning_summary_part.added for subsequent parts 1`] = `
-[
-
-"id: resp_reasoning_multi
-"
-,
-
-"event: data
-"
-,
-
-"data: "in_progress"
-
-"
-,
-
-"id: reasoning_1
-"
-,
-
-"event: reasoning
-"
-,
-
-"data: ""
-
-"
-,
-
-"id: reasoning_2
-"
-,
-
-"event: reasoning
-"
-,
-
-"data: "\\n"
-
-"
-,
-]
-`;
-
-exports[`OpenAIResponsesStream should handle response.reasoning_summary_text.delta 1`] = `
-[
-
-"id: resp_reasoning_delta
-"
-,
-
-"event: data
-"
-,
-
-"data: "in_progress"
-
-"
-,
-
-"id: reasoning_123
-"
-,
-
-"event: reasoning
-"
-,
-
-"data: "Thinking about"
-
-"
-,
-
-"id: reasoning_123
-"
-,
-
-"event: reasoning
-"
-,
-
-"data: " the problem..."
-
-"
-,
-]
-`;
-
-exports[`OpenAIResponsesStream should handle unknown chunk type as data 1`] = `
-[
-
-"id: resp_unknown
-"
-,
-
-"event: data
-"
-,
-
-"data: "in_progress"
-
-"
-,
-
-"id: resp_unknown
-"
-,
-
-"event: data
-"
-,
-
-"data: {"type":"response.unknown_event","data":"some data"}
-
-"
-,
-]
-`;
-
-exports[`OpenAIResponsesStream should transform OpenAI stream to protocol stream 1`] = `
-[
-
-"id: resp_683e7b8ca3308190b6837f20d2c015cd0cf93af363cdcf58
-"
-,
-
-"event: data
-"
-,
-
-"data: "in_progress"
-
-"
-,
-
-"id: resp_683e7b8ca3308190b6837f20d2c015cd0cf93af363cdcf58
-"
-,
-
-"event: data
-"
-,
-
-"data: {"type":"response.in_progress","response":{"id":"resp_683e7b8ca3308190b6837f20d2c015cd0cf93af363cdcf58","object":"response","created_at":1748925324,"status":"in_progress","error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":null,"model":"o4-mini","output":[],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":"medium","summary":null},"service_tier":"auto","store":false,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[{"type":"function","description":"a search service. Useful for when you need to answer questions about current events. Input should be a search query. Output is a JSON array of the query results","name":"lobe-web-browsing____search____builtin","parameters":{"properties":{"query":{"description":"The search query","type":"string"},"searchCategories":{"description":"The search categories you can set:","items":{"enum":["general","images","news","science","videos"],"type":"string"},"type":"array"},"searchEngines":{"description":"The search engines you can use:","items":{"enum":["google","bilibili","bing","duckduckgo","npm","pypi","github","arxiv","google scholar","z-library","reddit","imdb","brave","wikipedia","pinterest","unsplash","vimeo","youtube"],"type":"string"},"type":"array"},"searchTimeRange":{"description":"The time range you can set:","enum":["anytime","day","week","month","year"],"type":"string"}},"required":["query"],"type":"object"},"strict":true},{"type":"function","description":"A crawler can visit page content. Output is a JSON object of title, content, url and website","name":"lobe-web-browsing____crawlSinglePage____builtin","parameters":{"properties":{"url":{"description":"The url need to be crawled","type":"string"}},"required":["url"],"type":"object"},"strict":true},{"type":"function","description":"A crawler can visit multi pages. If need to visit multi website, use this one. Output is an array of JSON object of title, content, url and website","name":"lobe-web-browsing____crawlMultiPages____builtin","parameters":{"properties":{"urls":{"items":{"description":"The urls need to be crawled","type":"string"},"type":"array"}},"required":["urls"],"type":"object"},"strict":true}],"top_p":1,"truncation":"disabled","usage":null,"user":null,"metadata":{}}}
-
-"
-,
-
-"id: resp_683e7b8ca3308190b6837f20d2c015cd0cf93af363cdcf58
-"
-,
-
-"event: data
-"
-,
-
-"data: {"id":"rs_683e7bc80a9c81908f6e3d61ad63cc1e0cf93af363cdcf58","type":"reasoning","summary":[]}
-
-"
-,
-
-"id: resp_683e7b8ca3308190b6837f20d2c015cd0cf93af363cdcf58
-"
-,
-
-"event: data
-"
-,
-
-"data: {"id":"msg_683e7bde8b0c8190970ab8c719c0fc1c0cf93af363cdcf58","type":"message","status":"in_progress","content":[],"role":"assistant"}
-
-"
-,
-
-"id: resp_683e7b8ca3308190b6837f20d2c015cd0cf93af363cdcf58
-"
-,
-
-"event: data
-"
-,
-
-"data: {"type":"response.content_part.added","item_id":"msg_683e7bde8b0c8190970ab8c719c0fc1c0cf93af363cdcf58","output_index":1,"content_index":0,"part":{"type":"output_text","annotations":[],"text":"Hello"}}
-
-"
-,
-
-"id: resp_683e7b8ca3308190b6837f20d2c015cd0cf93af363cdcf58
-"
-,
-
-"event: data
-"
-,
-
-"data: {"type":"response.content_part.added","item_id":"msg_683e7bde8b0c8190970ab8c719c0fc1c0cf93af363cdcf58","output_index":1,"content_index":0,"part":{"type":"output_text","annotations":[],"text":" world"}}
-
-"
-,
-]
-`;
diff --git a/packages/model-runtime/src/providers/novita/__snapshots__/index.test.ts.snap b/packages/model-runtime/src/providers/novita/__snapshots__/index.test.ts.snap
index 0748e61d3ec..a252b100c98 100644
--- a/packages/model-runtime/src/providers/novita/__snapshots__/index.test.ts.snap
+++ b/packages/model-runtime/src/providers/novita/__snapshots__/index.test.ts.snap
@@ -581,587 +581,3 @@ Designed for a wide variety of tasks, it empowers developers and researchers to
},
]
`;
-
-exports[`NovitaAI models should get models 1`] = `
-[
- {
- "contextWindowTokens": 8192,
- "description": "Meta's latest class of model (Llama 3) launched with a variety of sizes & flavors. This 8B instruct-tuned version was optimized for high quality dialogue usecases. It has demonstrated strong performance compared to leading closed-source models in human evaluations.",
- "displayName": "meta-llama/llama-3-8b-instruct",
- "enabled": false,
- "functionCall": false,
- "id": "meta-llama/llama-3-8b-instruct",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": {
- "units": [
- {
- "name": "textInput",
- "rate": 0.063,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- {
- "name": "textOutput",
- "rate": 0.063,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- ],
- },
- "reasoning": false,
- "releasedAt": "2024-04-25",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 8192,
- "description": "Meta's latest class of model (Llama 3) launched with a variety of sizes & flavors. This 70B instruct-tuned version was optimized for high quality dialogue usecases. It has demonstrated strong performance compared to leading closed-source models in human evaluations.",
- "displayName": "meta-llama/llama-3-70b-instruct",
- "enabled": false,
- "functionCall": false,
- "id": "meta-llama/llama-3-70b-instruct",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": {
- "units": [
- {
- "name": "textInput",
- "rate": 0.55,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- {
- "name": "textOutput",
- "rate": 0.76,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- ],
- },
- "reasoning": false,
- "releasedAt": "2024-04-25",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 8192,
- "description": "Meta's latest class of models, Llama 3.1, launched with a variety of sizes and configurations. The 8B instruct-tuned version is particularly fast and efficient. It has demonstrated strong performance in human evaluations, outperforming several leading closed-source models.",
- "displayName": "meta-llama/llama-3.1-8b-instruct",
- "enabled": false,
- "functionCall": false,
- "id": "meta-llama/llama-3.1-8b-instruct",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": {
- "units": [
- {
- "name": "textInput",
- "rate": 0.1,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- {
- "name": "textOutput",
- "rate": 0.1,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- ],
- },
- "reasoning": false,
- "releasedAt": "2024-07-24",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 8192,
- "description": "Meta's latest class of models, Llama 3.1, has launched with a variety of sizes and configurations. The 70B instruct-tuned version is optimized for high-quality dialogue use cases. It has demonstrated strong performance in human evaluations compared to leading closed-source models.",
- "displayName": "meta-llama/llama-3.1-70b-instruct",
- "enabled": false,
- "functionCall": false,
- "id": "meta-llama/llama-3.1-70b-instruct",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": {
- "units": [
- {
- "name": "textInput",
- "rate": 0.55,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- {
- "name": "textOutput",
- "rate": 0.76,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- ],
- },
- "reasoning": false,
- "releasedAt": "2024-07-24",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 32768,
- "description": "Meta's latest class of models, Llama 3.1, launched with a variety of sizes and configurations. This 405B instruct-tuned version is optimized for high-quality dialogue use cases. It has demonstrated strong performance compared to leading closed-source models, including GPT-4o and Claude 3.5 Sonnet, in evaluations.",
- "displayName": "meta-llama/llama-3.1-405b-instruct",
- "enabled": false,
- "functionCall": false,
- "id": "meta-llama/llama-3.1-405b-instruct",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": {
- "units": [
- {
- "name": "textInput",
- "rate": 3,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- {
- "name": "textOutput",
- "rate": 5,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- ],
- },
- "reasoning": false,
- "releasedAt": "2024-07-24",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 8192,
- "description":
-"Gemma 2 9B by Google is an advanced, open-source language model that sets a new standard for efficiency and performance in its size class.
-Designed for a wide variety of tasks, it empowers developers and researchers to build innovative applications, while maintaining accessibility, safety, and cost-effectiveness."
-,
- "displayName": "google/gemma-2-9b-it",
- "enabled": false,
- "functionCall": false,
- "id": "google/gemma-2-9b-it",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": {
- "units": [
- {
- "name": "textInput",
- "rate": 0.08,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- {
- "name": "textOutput",
- "rate": 0.08,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- ],
- },
- "reasoning": false,
- "releasedAt": "2024-07-18",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 4096,
- "description": "This is a fine-tuned Llama-2 model designed to support longer and more detailed writing prompts, as well as next-chapter generation. It also includes an experimental role-playing instruction set with multi-round dialogues, character interactions, and varying numbers of participants",
- "displayName": "jondurbin/airoboros-l2-70b",
- "enabled": false,
- "functionCall": false,
- "id": "jondurbin/airoboros-l2-70b",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": {
- "units": [
- {
- "name": "textInput",
- "rate": 0.5,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- {
- "name": "textOutput",
- "rate": 0.5,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- ],
- },
- "reasoning": false,
- "releasedAt": "2024-07-17",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 8192,
- "description": "Hermes 2 Pro is an upgraded, retrained version of Nous Hermes 2, consisting of an updated and cleaned version of the OpenHermes 2.5 Dataset, as well as a newly introduced Function Calling and JSON Mode dataset developed in-house.",
- "displayName": "nousresearch/hermes-2-pro-llama-3-8b",
- "enabled": false,
- "functionCall": false,
- "id": "nousresearch/hermes-2-pro-llama-3-8b",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": {
- "units": [
- {
- "name": "textInput",
- "rate": 0.14,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- {
- "name": "textOutput",
- "rate": 0.14,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- ],
- },
- "reasoning": false,
- "releasedAt": "2024-06-27",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 32768,
- "description": "A high-performing, industry-standard 7.3B parameter model, with optimizations for speed and context length.",
- "displayName": "mistralai/mistral-7b-instruct",
- "enabled": false,
- "functionCall": false,
- "id": "mistralai/mistral-7b-instruct",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": {
- "units": [
- {
- "name": "textInput",
- "rate": 0.065,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- {
- "name": "textOutput",
- "rate": 0.065,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- ],
- },
- "reasoning": false,
- "releasedAt": "2024-06-27",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 16000,
- "description": "Dolphin 2.9 is designed for instruction following, conversational, and coding. This model is a finetune of Mixtral 8x22B Instruct. It features a 64k context length and was fine-tuned with a 16k sequence length using ChatML templates.The model is uncensored and is stripped of alignment and bias. It requires an external alignment layer for ethical use.",
- "displayName": "cognitivecomputations/dolphin-mixtral-8x22b",
- "enabled": false,
- "functionCall": false,
- "id": "cognitivecomputations/dolphin-mixtral-8x22b",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": {
- "units": [
- {
- "name": "textInput",
- "rate": 0.9,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- {
- "name": "textOutput",
- "rate": 0.9,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- ],
- },
- "reasoning": false,
- "releasedAt": "2024-06-27",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 16000,
- "description": "The uncensored llama3 model is a powerhouse of creativity, excelling in both roleplay and story writing. It offers a liberating experience during roleplays, free from any restrictions. This model stands out for its immense creativity, boasting a vast array of unique ideas and plots, truly a treasure trove for those seeking originality. Its unrestricted nature during roleplays allows for the full breadth of imagination to unfold, akin to an enhanced, big-brained version of Stheno. Perfect for creative minds seeking a boundless platform for their imaginative expressions, the uncensored llama3 model is an ideal choice",
- "displayName": "sao10k/l3-70b-euryale-v2.1",
- "enabled": false,
- "functionCall": false,
- "id": "sao10k/l3-70b-euryale-v2.1",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": {
- "units": [
- {
- "name": "textInput",
- "rate": 1.48,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- {
- "name": "textOutput",
- "rate": 1.48,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- ],
- },
- "reasoning": false,
- "releasedAt": "2024-06-18",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 4096,
- "description": "A merge with a complex family tree, this model was crafted for roleplaying and storytelling. Midnight Rose is a successor to Rogue Rose and Aurora Nights and improves upon them both. It wants to produce lengthy output by default and is the best creative writing merge produced so far by sophosympatheia.",
- "displayName": "sophosympatheia/midnight-rose-70b",
- "enabled": false,
- "functionCall": false,
- "id": "sophosympatheia/midnight-rose-70b",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": {
- "units": [
- {
- "name": "textInput",
- "rate": 0.8,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- {
- "name": "textOutput",
- "rate": 0.8,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- ],
- },
- "reasoning": false,
- "releasedAt": "2024-06-17",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 4096,
- "description": "The idea behind this merge is that each layer is composed of several tensors, which are in turn responsible for specific functions. Using MythoLogic-L2's robust understanding as its input and Huginn's extensive writing capability as its output seems to have resulted in a model that exceeds at both, confirming my theory. (More details to be released at a later time).",
- "displayName": "gryphe/mythomax-l2-13b",
- "enabled": false,
- "functionCall": false,
- "id": "gryphe/mythomax-l2-13b",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": {
- "units": [
- {
- "name": "textInput",
- "rate": 0.119,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- {
- "name": "textOutput",
- "rate": 0.119,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- ],
- },
- "reasoning": false,
- "releasedAt": "2024-04-25",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 4096,
- "description": "Nous-Hermes-Llama2-13b is a state-of-the-art language model fine-tuned on over 300,000 instructions. This model was fine-tuned by Nous Research, with Teknium and Emozilla leading the fine tuning process and dataset curation, Redmond AI sponsoring the compute, and several other contributors.",
- "displayName": "nousresearch/nous-hermes-llama2-13b",
- "enabled": false,
- "functionCall": false,
- "id": "nousresearch/nous-hermes-llama2-13b",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": {
- "units": [
- {
- "name": "textInput",
- "rate": 0.17,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- {
- "name": "textOutput",
- "rate": 0.17,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- ],
- },
- "reasoning": false,
- "releasedAt": "2024-04-25",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 32768,
- "description": "Nous Hermes 2 Mixtral 8x7B DPO is the new flagship Nous Research model trained over the Mixtral 8x7B MoE LLM. The model was trained on over 1,000,000 entries of primarily GPT-4 generated data, as well as other high quality data from open datasets across the AI landscape, achieving state of the art performance on a variety of tasks.",
- "displayName": "Nous-Hermes-2-Mixtral-8x7B-DPO",
- "enabled": false,
- "functionCall": false,
- "id": "Nous-Hermes-2-Mixtral-8x7B-DPO",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": {
- "units": [
- {
- "name": "textInput",
- "rate": 0.27,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- {
- "name": "textOutput",
- "rate": 0.27,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- ],
- },
- "reasoning": false,
- "releasedAt": "2024-04-25",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 4096,
- "description": "A Mythomax/MLewd_13B-style merge of selected 70B models. A multi-model merge of several LLaMA2 70B finetunes for roleplaying and creative work. The goal was to create a model that combines creativity with intelligence for an enhanced experience.",
- "displayName": "lzlv_70b",
- "enabled": false,
- "functionCall": false,
- "id": "lzlv_70b",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": {
- "units": [
- {
- "name": "textInput",
- "rate": 0.58,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- {
- "name": "textOutput",
- "rate": 0.78,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- ],
- },
- "reasoning": false,
- "releasedAt": "2024-04-25",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 4096,
- "description": "OpenHermes 2.5 Mistral 7B is a state of the art Mistral Fine-tune, a continuation of OpenHermes 2 model, which trained on additional code datasets.",
- "displayName": "teknium/openhermes-2.5-mistral-7b",
- "enabled": false,
- "functionCall": false,
- "id": "teknium/openhermes-2.5-mistral-7b",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": {
- "units": [
- {
- "name": "textInput",
- "rate": 0.17,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- {
- "name": "textOutput",
- "rate": 0.17,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- ],
- },
- "reasoning": false,
- "releasedAt": "2024-04-24",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 65535,
- "description": "WizardLM-2 8x22B is Microsoft AI's most advanced Wizard model. It demonstrates highly competitive performance compared to leading proprietary models, and it consistently outperforms all existing state-of-the-art opensource models.",
- "displayName": "microsoft/wizardlm-2-8x22b",
- "enabled": false,
- "functionCall": false,
- "id": "microsoft/wizardlm-2-8x22b",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": {
- "units": [
- {
- "name": "textInput",
- "rate": 0.64,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- {
- "name": "textOutput",
- "rate": 0.64,
- "strategy": "fixed",
- "unit": "millionTokens",
- },
- ],
- },
- "reasoning": false,
- "releasedAt": "2024-04-24",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
-]
-`;
diff --git a/packages/model-runtime/src/providers/openai/__snapshots__/index.test.ts.snap b/packages/model-runtime/src/providers/openai/__snapshots__/index.test.ts.snap
index e2ed80ef268..3842e3aa4a4 100644
--- a/packages/model-runtime/src/providers/openai/__snapshots__/index.test.ts.snap
+++ b/packages/model-runtime/src/providers/openai/__snapshots__/index.test.ts.snap
@@ -4,7 +4,7 @@ exports[`LobeOpenAI > models > should get models 1`] = `
[
{
"contextWindowTokens": undefined,
- "description": "通用语音识别模型,支持多语言语音识别、语音翻译和语言识别。",
+ "description": "A general speech recognition model supporting multilingual ASR, speech translation, and language identification.",
"displayName": "Whisper",
"enabled": false,
"functionCall": false,
@@ -38,7 +38,7 @@ exports[`LobeOpenAI > models > should get models 1`] = `
},
{
"contextWindowTokens": 16384,
- "description": "GPT 3.5 Turbo,适用于各种文本生成和理解任务,Currently points to gpt-3.5-turbo-0125",
+ "description": "GPT 3.5 Turbo for text generation and understanding; currently points to gpt-3.5-turbo-0125.",
"displayName": "GPT-3.5 Turbo",
"enabled": false,
"functionCall": true,
@@ -55,7 +55,7 @@ exports[`LobeOpenAI > models > should get models 1`] = `
},
{
"contextWindowTokens": undefined,
- "description": "第二代 DALL·E 模型,支持更真实、准确的图像生成,分辨率是第一代的4倍",
+ "description": "Second-generation DALL·E model with more realistic, accurate image generation and 4× the resolution of the first generation.",
"displayName": "DALL·E 2",
"enabled": false,
"functionCall": false,
@@ -122,7 +122,7 @@ exports[`LobeOpenAI > models > should get models 1`] = `
},
{
"contextWindowTokens": undefined,
- "description": "最新的文本转语音模型,针对质量进行优化",
+ "description": "The latest text-to-speech model optimized for quality.",
"displayName": "TTS-1 HD",
"enabled": false,
"functionCall": false,
@@ -156,7 +156,7 @@ exports[`LobeOpenAI > models > should get models 1`] = `
},
{
"contextWindowTokens": 8192,
- "description": "最强大的向量化模型,适用于英文和非英文任务",
+ "description": "The most capable embedding model for English and non-English tasks.",
"displayName": "Text Embedding 3 Large",
"enabled": false,
"functionCall": false,
@@ -207,7 +207,7 @@ exports[`LobeOpenAI > models > should get models 1`] = `
},
{
"contextWindowTokens": 128000,
- "description": "最新的 GPT-4 Turbo 模型具备视觉功能。现在,视觉请求可以使用 JSON 模式和函数调用。 GPT-4 Turbo 是一个增强版本,为多模态任务提供成本效益高的支持。它在准确性和效率之间找到平衡,适合需要进行实时交互的应用程序场景。",
+ "description": "The latest GPT-4 Turbo adds vision. Visual requests support JSON mode and function calling. It is a cost-effective multimodal model that balances accuracy and efficiency for real-time applications.",
"displayName": "GPT-4 Turbo Preview 0125",
"enabled": false,
"functionCall": true,
@@ -224,7 +224,7 @@ exports[`LobeOpenAI > models > should get models 1`] = `
},
{
"contextWindowTokens": 128000,
- "description": "最新的 GPT-4 Turbo 模型具备视觉功能。现在,视觉请求可以使用 JSON 模式和函数调用。 GPT-4 Turbo 是一个增强版本,为多模态任务提供成本效益高的支持。它在准确性和效率之间找到平衡,适合需要进行实时交互的应用程序场景。",
+ "description": "The latest GPT-4 Turbo adds vision. Visual requests support JSON mode and function calling. It is a cost-effective multimodal model that balances accuracy and efficiency for real-time applications.",
"displayName": "GPT-4 Turbo Preview",
"enabled": false,
"functionCall": true,
@@ -241,7 +241,7 @@ exports[`LobeOpenAI > models > should get models 1`] = `
},
{
"contextWindowTokens": 4096,
- "description": "GPT 3.5 Turbo,适用于各种文本生成和理解任务,对指令遵循的优化",
+ "description": "GPT 3.5 Turbo for text generation and understanding tasks, optimized for instruction following.",
"displayName": "GPT-3.5 Turbo Instruct",
"enabled": false,
"functionCall": false,
@@ -292,7 +292,7 @@ exports[`LobeOpenAI > models > should get models 1`] = `
},
{
"contextWindowTokens": undefined,
- "description": "最新的文本转语音模型,针对实时场景优化速度",
+ "description": "The latest text-to-speech model optimized for real-time speed.",
"displayName": "TTS-1",
"enabled": false,
"functionCall": false,
@@ -309,7 +309,7 @@ exports[`LobeOpenAI > models > should get models 1`] = `
},
{
"contextWindowTokens": undefined,
- "description": "最新的 DALL·E 模型,于2023年11月发布。支持更真实、准确的图像生成,具有更强的细节表现力",
+ "description": "The latest DALL·E model, released in November 2023, supports more realistic, accurate image generation with stronger detail.",
"displayName": "DALL·E 3",
"enabled": false,
"functionCall": false,
@@ -346,7 +346,7 @@ exports[`LobeOpenAI > models > should get models 1`] = `
},
{
"contextWindowTokens": 16384,
- "description": "GPT 3.5 Turbo,适用于各种文本生成和理解任务,Currently points to gpt-3.5-turbo-0125",
+ "description": "GPT 3.5 Turbo for text generation and understanding; currently points to gpt-3.5-turbo-0125.",
"displayName": "GPT-3.5 Turbo 1106",
"enabled": false,
"functionCall": true,
@@ -363,7 +363,7 @@ exports[`LobeOpenAI > models > should get models 1`] = `
},
{
"contextWindowTokens": 128000,
- "description": "最新的 GPT-4 Turbo 模型具备视觉功能。现在,视觉请求可以使用 JSON 模式和函数调用。 GPT-4 Turbo 是一个增强版本,为多模态任务提供成本效益高的支持。它在准确性和效率之间找到平衡,适合需要进行实时交互的应用程序场景。",
+ "description": "The latest GPT-4 Turbo adds vision. Visual requests support JSON mode and function calling. It is a cost-effective multimodal model that balances accuracy and efficiency for real-time applications.",
"displayName": "GPT-4 Turbo Preview 1106",
"enabled": false,
"functionCall": true,
@@ -414,7 +414,7 @@ exports[`LobeOpenAI > models > should get models 1`] = `
},
{
"contextWindowTokens": 128000,
- "description": "GPT-4 视觉预览版,专为图像分析和处理任务设计。",
+ "description": "GPT-4 Vision preview, designed for image analysis and processing tasks.",
"displayName": "GPT 4 Turbo with Vision Preview",
"enabled": false,
"functionCall": false,
@@ -431,7 +431,7 @@ exports[`LobeOpenAI > models > should get models 1`] = `
},
{
"contextWindowTokens": 8192,
- "description": "高效且经济的新一代 Embedding 模型,适用于知识检索、RAG 应用等场景",
+ "description": "An efficient, cost-effective next-generation embedding model for retrieval and RAG scenarios.",
"displayName": "Text Embedding 3 Small",
"enabled": false,
"functionCall": false,
@@ -448,7 +448,7 @@ exports[`LobeOpenAI > models > should get models 1`] = `
},
{
"contextWindowTokens": 8192,
- "description": "GPT-4 提供了一个更大的上下文窗口,能够处理更长的文本输入,适用于需要广泛信息整合和数据分析的场景。",
+ "description": "GPT-4 provides a larger context window to handle longer inputs, suitable for broad information synthesis and data analysis.",
"displayName": "GPT-4",
"enabled": false,
"functionCall": true,
@@ -482,7 +482,7 @@ exports[`LobeOpenAI > models > should get models 1`] = `
},
{
"contextWindowTokens": 16384,
- "description": "GPT 3.5 Turbo,适用于各种文本生成和理解任务,Currently points to gpt-3.5-turbo-0125",
+ "description": "GPT 3.5 Turbo for text generation and understanding; currently points to gpt-3.5-turbo-0125.",
"displayName": "GPT-3.5 Turbo 0125",
"enabled": false,
"functionCall": true,
@@ -499,524 +499,7 @@ exports[`LobeOpenAI > models > should get models 1`] = `
},
{
"contextWindowTokens": 8192,
- "description": "GPT-4 提供了一个更大的上下文窗口,能够处理更长的文本输入,适用于需要广泛信息整合和数据分析的场景。",
- "displayName": "GPT-4 0613",
- "enabled": false,
- "functionCall": true,
- "id": "gpt-4-0613",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2023-06-12",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
-]
-`;
-
-exports[`LobeOpenAI models should get models 1`] = `
-[
- {
- "contextWindowTokens": undefined,
- "description": "通用语音识别模型,支持多语言语音识别、语音翻译和语言识别。",
- "displayName": "Whisper",
- "enabled": false,
- "functionCall": false,
- "id": "whisper-1",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2023-02-27",
- "search": false,
- "type": "stt",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": undefined,
- "description": "",
- "displayName": "davinci-002",
- "enabled": false,
- "functionCall": false,
- "id": "davinci-002",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2023-08-21",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 16384,
- "description": "GPT 3.5 Turbo,适用于各种文本生成和理解任务,Currently points to gpt-3.5-turbo-0125",
- "displayName": "GPT-3.5 Turbo",
- "enabled": false,
- "functionCall": true,
- "id": "gpt-3.5-turbo",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2023-02-28",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": undefined,
- "description": "第二代 DALL·E 模型,支持更真实、准确的图像生成,分辨率是第一代的4倍",
- "displayName": "DALL·E 2",
- "enabled": false,
- "functionCall": false,
- "id": "dall-e-2",
- "imageOutput": false,
- "maxOutput": undefined,
- "parameters": {
- "imageUrl": {
- "default": null,
- },
- "prompt": {
- "default": "",
- },
- "size": {
- "default": "1024x1024",
- "enum": [
- "256x256",
- "512x512",
- "1024x1024",
- ],
- },
- },
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2023-11-01",
- "search": false,
- "type": "image",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": undefined,
- "description": "",
- "displayName": "gpt-3.5-turbo-16k",
- "enabled": false,
- "functionCall": false,
- "id": "gpt-3.5-turbo-16k",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2023-05-10",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": undefined,
- "description": "",
- "displayName": "tts-1-hd-1106",
- "enabled": false,
- "functionCall": false,
- "id": "tts-1-hd-1106",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2023-11-03",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": undefined,
- "description": "最新的文本转语音模型,针对质量进行优化",
- "displayName": "TTS-1 HD",
- "enabled": false,
- "functionCall": false,
- "id": "tts-1-hd",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2023-11-03",
- "search": false,
- "type": "tts",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": undefined,
- "description": "",
- "displayName": "gpt-3.5-turbo-16k-0613",
- "enabled": false,
- "functionCall": false,
- "id": "gpt-3.5-turbo-16k-0613",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2023-05-30",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 8192,
- "description": "最强大的向量化模型,适用于英文和非英文任务",
- "displayName": "Text Embedding 3 Large",
- "enabled": false,
- "functionCall": false,
- "id": "text-embedding-3-large",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2024-01-22",
- "search": false,
- "type": "embedding",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": undefined,
- "description": "",
- "displayName": "gpt-4-1106-vision-preview",
- "enabled": false,
- "functionCall": false,
- "id": "gpt-4-1106-vision-preview",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2024-03-26",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": undefined,
- "description": "",
- "displayName": "gpt-3.5-turbo-instruct-0914",
- "enabled": false,
- "functionCall": false,
- "id": "gpt-3.5-turbo-instruct-0914",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2023-09-07",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 128000,
- "description": "最新的 GPT-4 Turbo 模型具备视觉功能。现在,视觉请求可以使用 JSON 模式和函数调用。 GPT-4 Turbo 是一个增强版本,为多模态任务提供成本效益高的支持。它在准确性和效率之间找到平衡,适合需要进行实时交互的应用程序场景。",
- "displayName": "GPT-4 Turbo Preview 0125",
- "enabled": false,
- "functionCall": true,
- "id": "gpt-4-0125-preview",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2024-01-23",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 128000,
- "description": "最新的 GPT-4 Turbo 模型具备视觉功能。现在,视觉请求可以使用 JSON 模式和函数调用。 GPT-4 Turbo 是一个增强版本,为多模态任务提供成本效益高的支持。它在准确性和效率之间找到平衡,适合需要进行实时交互的应用程序场景。",
- "displayName": "GPT-4 Turbo Preview",
- "enabled": false,
- "functionCall": true,
- "id": "gpt-4-turbo-preview",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2024-01-23",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 4096,
- "description": "GPT 3.5 Turbo,适用于各种文本生成和理解任务,对指令遵循的优化",
- "displayName": "GPT-3.5 Turbo Instruct",
- "enabled": false,
- "functionCall": false,
- "id": "gpt-3.5-turbo-instruct",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2023-08-24",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": undefined,
- "description": "",
- "displayName": "gpt-3.5-turbo-0301",
- "enabled": false,
- "functionCall": false,
- "id": "gpt-3.5-turbo-0301",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2023-03-01",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": undefined,
- "description": "",
- "displayName": "gpt-3.5-turbo-0613",
- "enabled": false,
- "functionCall": false,
- "id": "gpt-3.5-turbo-0613",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2023-06-12",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": undefined,
- "description": "最新的文本转语音模型,针对实时场景优化速度",
- "displayName": "TTS-1",
- "enabled": false,
- "functionCall": false,
- "id": "tts-1",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2023-04-19",
- "search": false,
- "type": "tts",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": undefined,
- "description": "最新的 DALL·E 模型,于2023年11月发布。支持更真实、准确的图像生成,具有更强的细节表现力",
- "displayName": "DALL·E 3",
- "enabled": false,
- "functionCall": false,
- "id": "dall-e-3",
- "imageOutput": false,
- "maxOutput": undefined,
- "parameters": {
- "prompt": {
- "default": "",
- },
- "quality": {
- "default": "standard",
- "enum": [
- "standard",
- "hd",
- ],
- },
- "size": {
- "default": "1024x1024",
- "enum": [
- "1024x1024",
- "1792x1024",
- "1024x1792",
- ],
- },
- },
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2023-10-31",
- "search": false,
- "type": "image",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 16384,
- "description": "GPT 3.5 Turbo,适用于各种文本生成和理解任务,Currently points to gpt-3.5-turbo-0125",
- "displayName": "GPT-3.5 Turbo 1106",
- "enabled": false,
- "functionCall": true,
- "id": "gpt-3.5-turbo-1106",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2023-11-02",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 128000,
- "description": "最新的 GPT-4 Turbo 模型具备视觉功能。现在,视觉请求可以使用 JSON 模式和函数调用。 GPT-4 Turbo 是一个增强版本,为多模态任务提供成本效益高的支持。它在准确性和效率之间找到平衡,适合需要进行实时交互的应用程序场景。",
- "displayName": "GPT-4 Turbo Preview 1106",
- "enabled": false,
- "functionCall": true,
- "id": "gpt-4-1106-preview",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2023-11-02",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": undefined,
- "description": "",
- "displayName": "babbage-002",
- "enabled": false,
- "functionCall": false,
- "id": "babbage-002",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2023-08-21",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": undefined,
- "description": "",
- "displayName": "tts-1-1106",
- "enabled": false,
- "functionCall": false,
- "id": "tts-1-1106",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2023-11-03",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 128000,
- "description": "GPT-4 视觉预览版,专为图像分析和处理任务设计。",
- "displayName": "GPT 4 Turbo with Vision Preview",
- "enabled": false,
- "functionCall": false,
- "id": "gpt-4-vision-preview",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2023-11-02",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": true,
- },
- {
- "contextWindowTokens": 8192,
- "description": "高效且经济的新一代 Embedding 模型,适用于知识检索、RAG 应用等场景",
- "displayName": "Text Embedding 3 Small",
- "enabled": false,
- "functionCall": false,
- "id": "text-embedding-3-small",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2024-01-22",
- "search": false,
- "type": "embedding",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 8192,
- "description": "GPT-4 提供了一个更大的上下文窗口,能够处理更长的文本输入,适用于需要广泛信息整合和数据分析的场景。",
- "displayName": "GPT-4",
- "enabled": false,
- "functionCall": true,
- "id": "gpt-4",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2023-06-27",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": undefined,
- "description": "",
- "displayName": "text-embedding-ada-002",
- "enabled": false,
- "functionCall": false,
- "id": "text-embedding-ada-002",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2022-12-16",
- "search": false,
- "type": "embedding",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 16384,
- "description": "GPT 3.5 Turbo,适用于各种文本生成和理解任务,Currently points to gpt-3.5-turbo-0125",
- "displayName": "GPT-3.5 Turbo 0125",
- "enabled": false,
- "functionCall": true,
- "id": "gpt-3.5-turbo-0125",
- "imageOutput": false,
- "maxOutput": undefined,
- "pricing": undefined,
- "reasoning": false,
- "releasedAt": "2024-01-23",
- "search": false,
- "type": "chat",
- "video": false,
- "vision": false,
- },
- {
- "contextWindowTokens": 8192,
- "description": "GPT-4 提供了一个更大的上下文窗口,能够处理更长的文本输入,适用于需要广泛信息整合和数据分析的场景。",
+ "description": "GPT-4 provides a larger context window to handle longer inputs, suitable for broad information synthesis and data analysis.",
"displayName": "GPT-4 0613",
"enabled": false,
"functionCall": true,
diff --git a/packages/model-runtime/src/providers/ppio/__snapshots__/index.test.ts.snap b/packages/model-runtime/src/providers/ppio/__snapshots__/index.test.ts.snap
index 824d46589cc..aee1b20b3eb 100644
--- a/packages/model-runtime/src/providers/ppio/__snapshots__/index.test.ts.snap
+++ b/packages/model-runtime/src/providers/ppio/__snapshots__/index.test.ts.snap
@@ -26,30 +26,3 @@ exports[`PPIO > models > should get models 1`] = `
},
]
`;
-
-exports[`PPIO models should get models 1`] = `
-[
- {
- "contextWindowTokens": 64000,
- "description": "DeepSeek R1是DeepSeek团队发布的最新开源模型,具备非常强悍的推理性能,尤其在数学、编程和推理任务上达到了与OpenAI的o1模型相当的水平。",
- "displayName": "DeepSeek: DeepSeek R1 (community)",
- "enabled": true,
- "functionCall": false,
- "id": "deepseek/deepseek-r1/community",
- "reasoning": true,
- "type": "chat",
- "vision": false,
- },
- {
- "contextWindowTokens": 64000,
- "description": "DeepSeek-V3在推理速度方面实现了比之前模型的重大突破。在开源模型中排名第一,并可与全球最先进的闭源模型相媲美。DeepSeek-V3 采用了多头潜在注意力 (MLA) 和 DeepSeekMoE 架构,这些架构在 DeepSeek-V2 中得到了全面验证。此外,DeepSeek-V3 开创了一种用于负载均衡的辅助无损策略,并设定了多标记预测训练目标以获得更强的性能。",
- "displayName": "DeepSeek: DeepSeek V3 (community)",
- "enabled": true,
- "functionCall": false,
- "id": "deepseek/deepseek-v3/community",
- "reasoning": false,
- "type": "chat",
- "vision": false,
- },
-]
-`;
diff --git a/src/utils/server/parseModels.test.ts b/src/utils/server/parseModels.test.ts
index cfd738cd128..a8cc0406d02 100644
--- a/src/utils/server/parseModels.test.ts
+++ b/src/utils/server/parseModels.test.ts
@@ -639,7 +639,7 @@ describe('transformToChatModelCards', () => {
config: { deploymentName: 'o1-mini' },
contextWindowTokens: 128000,
description:
- 'o1-mini是一款针对编程、数学和科学应用场景而设计的快速、经济高效的推理模型。该模型具有128K上下文和2023年10月的知识截止日期。',
+ 'o1-mini is a fast, cost-effective reasoning model designed for programming, math, and science use cases. It has a 128K context window and an October 2023 knowledge cutoff.',
displayName: 'OpenAI o1-mini',
enabled: true,
id: 'o1-mini',
@@ -680,7 +680,7 @@ describe('transformToChatModelCards', () => {
config: { deploymentName: 'gpt-4o' },
contextWindowTokens: 128000,
description:
- 'ChatGPT-4o 是一款动态模型,实时更新以保持当前最新版本。它结合了强大的语言理解与生成能力,适合于大规模应用场景,包括客户服务、教育和技术支持。',
+ 'ChatGPT-4o is a dynamic model that updates in real time to stay current. It combines strong language understanding and generation, suitable for large-scale applications such as customer support, education, and technical support.',
displayName: 'GPT-4o',
enabled: true,
id: 'gpt-4o',
@@ -702,7 +702,7 @@ describe('transformToChatModelCards', () => {
abilities: { functionCall: true, vision: true },
config: { deploymentName: 'gpt-4o-mini' },
contextWindowTokens: 128000,
- description: 'GPT-4o Mini,小型高效模型,具备与GPT-4o相似的卓越性能。',
+ description: 'GPT-4o Mini is a small, efficient model with performance similar to GPT-4o.',
displayName: 'GPT 4o Mini',
enabled: true,
id: 'gpt-4o-mini',
@@ -727,7 +727,7 @@ describe('transformToChatModelCards', () => {
config: { deploymentName: 'id1' },
contextWindowTokens: 128000,
description:
- 'ChatGPT-4o 是一款动态模型,实时更新以保持当前最新版本。它结合了强大的语言理解与生成能力,适合于大规模应用场景,包括客户服务、教育和技术支持。',
+ 'ChatGPT-4o is a dynamic model that updates in real time to stay current. It combines strong language understanding and generation, suitable for large-scale applications such as customer support, education, and technical support.',
displayName: 'GPT-4o',
enabled: true,
id: 'gpt-4o',
@@ -763,7 +763,7 @@ describe('transformToChatModelCards', () => {
abilities: { functionCall: true, vision: true },
config: { deploymentName: 'id2' },
contextWindowTokens: 128000,
- description: 'GPT-4o Mini,小型高效模型,具备与GPT-4o相似的卓越性能。',
+ description: 'GPT-4o Mini is a small, efficient model with performance similar to GPT-4o.',
displayName: 'GPT 4o Mini',
providerId: 'azure',
source: 'builtin',
@@ -799,7 +799,7 @@ describe('transformToChatModelCards', () => {
config: { deploymentName: 'id3' },
contextWindowTokens: 128000,
description:
- 'o1-mini是一款针对编程、数学和科学应用场景而设计的快速、经济高效的推理模型。该模型具有128K上下文和2023年10月的知识截止日期。',
+ 'o1-mini is a fast, cost-effective reasoning model designed for programming, math, and science use cases. It has a 128K context window and an October 2023 knowledge cutoff.',
displayName: 'OpenAI o1-mini',
enabled: true,
providerId: 'azure',