mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-13 08:06:24 +08:00
feat(server): upgrade models to gpt4.1 (#11696)
This commit is contained in:
@@ -461,8 +461,9 @@ const actions = [
|
||||
],
|
||||
verifier: (t: ExecutionContext<Tester>, result: string) => {
|
||||
assertNotWrappedInCodeBlock(t, result);
|
||||
const cleared = result.toLowerCase();
|
||||
t.assert(
|
||||
result.toLowerCase().includes('单一事实来源'),
|
||||
cleared.includes('单一') || cleared.includes('SSOT'),
|
||||
'explain code result should include keyword'
|
||||
);
|
||||
},
|
||||
|
||||
@@ -17,6 +17,9 @@ export class MockCopilotProvider extends OpenAIProvider {
|
||||
'test',
|
||||
'gpt-4o',
|
||||
'gpt-4o-2024-08-06',
|
||||
'gpt-4.1',
|
||||
'gpt-4.1-2025-04-14',
|
||||
'gpt-4.1-mini',
|
||||
'fast-sdxl/image-to-image',
|
||||
'lcm-sd15-i2i',
|
||||
'clarity-upscaler',
|
||||
@@ -47,7 +50,7 @@ export class MockCopilotProvider extends OpenAIProvider {
|
||||
|
||||
override async *generateTextStream(
|
||||
messages: PromptMessage[],
|
||||
model: string = 'gpt-4o-mini',
|
||||
model: string = 'gpt-4.1-mini',
|
||||
options: CopilotChatOptions = {}
|
||||
): AsyncIterable<string> {
|
||||
this.checkParams({ messages, model, options });
|
||||
|
||||
Reference in New Issue
Block a user