Skip to content

Commit

Permalink
Expand tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
kinyoklion committed Nov 14, 2024
1 parent b3a200d commit 3a7fd63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sdk/server-ai/__tests__/LDAIClientImpl.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ it('returns model config with interpolated prompts', async () => {
};

const mockVariation = {
model: { modelId: 'example-provider', name: 'imagination' },
model: { modelId: 'example-provider', name: 'imagination', temperature: 0.7, maxTokens: 4096 },
prompt: [
{ role: 'system', content: 'Hello {{name}}' },
{ role: 'user', content: 'Score: {{score}}' },
Expand All @@ -56,7 +56,7 @@ it('returns model config with interpolated prompts', async () => {
const result = await client.modelConfig(key, testContext, defaultValue, variables);

expect(result).toEqual({
model: { modelId: 'example-provider', name: 'imagination' },
model: { modelId: 'example-provider', name: 'imagination', temperature: 0.7, maxTokens: 4096 },
prompt: [
{ role: 'system', content: 'Hello John' },
{ role: 'user', content: 'Score: 42' },
Expand Down

0 comments on commit 3a7fd63

Please sign in to comment.