mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-03-01 16:13:08 +00:00
fix: update documentation-generator tests for max_completion_tokens
- Updated test assertions from max_tokens to max_completion_tokens - Updated testConnection token limit expectation from 10 to 200 - Added temperature to test config to match new configurable behavior Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -41,6 +41,7 @@ describe('DocumentationGenerator', () => {
|
|||||||
apiKey: 'test-key',
|
apiKey: 'test-key',
|
||||||
timeout: 30000,
|
timeout: 30000,
|
||||||
maxTokens: 1000,
|
maxTokens: 1000,
|
||||||
|
temperature: 0.3,
|
||||||
};
|
};
|
||||||
|
|
||||||
const validSummary = {
|
const validSummary = {
|
||||||
@@ -163,7 +164,7 @@ describe('DocumentationGenerator', () => {
|
|||||||
|
|
||||||
expect(mockCreate).toHaveBeenCalledWith({
|
expect(mockCreate).toHaveBeenCalledWith({
|
||||||
model: 'test-model',
|
model: 'test-model',
|
||||||
max_tokens: 1000,
|
max_completion_tokens: 1000,
|
||||||
temperature: 0.3,
|
temperature: 0.3,
|
||||||
messages: expect.arrayContaining([
|
messages: expect.arrayContaining([
|
||||||
expect.objectContaining({ role: 'system' }),
|
expect.objectContaining({ role: 'system' }),
|
||||||
@@ -680,7 +681,7 @@ describe('DocumentationGenerator', () => {
|
|||||||
|
|
||||||
expect(mockCreate).toHaveBeenCalledWith(
|
expect(mockCreate).toHaveBeenCalledWith(
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
max_tokens: 10,
|
max_completion_tokens: 200,
|
||||||
messages: [
|
messages: [
|
||||||
{
|
{
|
||||||
role: 'user',
|
role: 'user',
|
||||||
|
|||||||
Reference in New Issue
Block a user