Update AI default model to glm-4.6
This commit is contained in:
@@ -24,7 +24,7 @@ describe('ai config and runtime', () => {
|
||||
expect(config.provider).toBe('zhipu');
|
||||
expect(config.apiKey).toBe('key');
|
||||
expect(config.baseUrl).toBe(CODING_API_BASE_URL);
|
||||
expect(config.model).toBe('glm-5');
|
||||
expect(config.model).toBe('glm-4.6');
|
||||
expect(config.temperature).toBe(0.2);
|
||||
});
|
||||
|
||||
@@ -80,7 +80,7 @@ describe('ai config and runtime', () => {
|
||||
expect(config.provider).toBe('zhipu');
|
||||
expect(config.apiKey).toBe('new-key');
|
||||
expect(config.baseUrl).toBe(CODING_API_BASE_URL);
|
||||
expect(config.model).toBe('glm-5');
|
||||
expect(config.model).toBe('glm-4.6');
|
||||
expect(config.temperature).toBe(0);
|
||||
return { modelId: config.model };
|
||||
});
|
||||
@@ -109,7 +109,7 @@ describe('ai config and runtime', () => {
|
||||
});
|
||||
|
||||
expect(result.provider).toBe('zhipu');
|
||||
expect(result.model).toBe('glm-5');
|
||||
expect(result.model).toBe('glm-4.6');
|
||||
expect(result.text).toBe('{"summary":"ok"}');
|
||||
expect(createModel).toHaveBeenCalledTimes(1);
|
||||
expect(generate).toHaveBeenCalledTimes(1);
|
||||
|
||||
@@ -155,7 +155,7 @@ export function getReportAiConfig(options?: GetAiConfigOptions) {
|
||||
provider: 'zhipu',
|
||||
apiKey: envValue('ZHIPU_API_KEY', env),
|
||||
baseUrl: CODING_API_BASE_URL,
|
||||
model: envValue('ZHIPU_MODEL', env) ?? 'glm-5',
|
||||
model: envValue('ZHIPU_MODEL', env) ?? 'glm-4.6',
|
||||
temperature: parseTemperature(envValue('AI_TEMPERATURE', env))
|
||||
} satisfies AiConfig;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user