Skip to content

Commit 1c40d53

Browse files
author
DavertMik
committed
improved packages
1 parent a05f84a commit 1c40d53

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575
"publish-beta": "./runok.cjs publish:next-beta-version"
7676
},
7777
"dependencies": {
78-
"@ai-sdk/openai": "^2.0.42",
7978
"@codeceptjs/configure": "1.0.6",
8079
"@codeceptjs/helper": "^4.0.0-beta.1",
8180
"@cucumber/cucumber-expressions": "^18.0.1",

test/unit/ai_test.js

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { expect } from 'chai'
22
import AiAssistant from '../../lib/ai.js'
33
import config from '../../lib/config.js'
4-
import { openai } from '@ai-sdk/openai'
54
import { createMockModel, MockResponses } from '../support/mock-ai-provider.js'
65
import fs from 'fs'
76
import path from 'path'
@@ -44,31 +43,6 @@ describe('AI module', () => {
4443
expect(AiAssistant.isEnabled).to.be.false
4544
})
4645

47-
it.skip('Creating completion', async () => {
48-
AiAssistant.enable({
49-
model: openai('gpt-4o-mini'),
50-
})
51-
const completion = await AiAssistant.createCompletion([
52-
{ role: 'user', content: 'message 1' },
53-
{ role: 'user', content: 'message 2' },
54-
])
55-
expect(completion).to.be.a('string')
56-
})
57-
58-
it.skip('Healing failed step', async () => {
59-
AiAssistant.enable({
60-
model: openai('gpt-4o-mini'),
61-
})
62-
const failureContext = {
63-
html: '<div><a href="#">Hello, world!</a></div>',
64-
step: { toCode: () => 'Failed step' },
65-
error: { message: 'Error message' },
66-
prevSteps: [{ toString: () => 'Previous step' }],
67-
}
68-
const completion = await AiAssistant.healFailedStep(failureContext)
69-
expect(completion).to.be.an('array')
70-
})
71-
7246
it('Stopping when reaching tokens limit', async () => {
7347
await AiAssistant.enable({ maxTokens: 100 })
7448
AiAssistant.numTokens = 200

0 commit comments

Comments
 (0)