Skip to content

Commit 1c61814

Browse files
committed
2 parents 7d372c4 + 0d8d417 commit 1c61814

File tree

11 files changed

+6
-20
lines changed

11 files changed

+6
-20
lines changed

src/stack/createEmbedding/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Pinecone, PineconeRecord } from '@pinecone-database/pinecone';
2-
import { getEmbedding } from '../../../stacks/openai/getEmbedding';
2+
import { getEmbedding } from '../../stacks/openai/getEmbedding';
33
import { BoilerplateMetadata } from '../integrations/lib/types';
44
import { combineSkeleton } from '../createSkeleton';
55

src/stack/integrations/generic/chooseBoilerplate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import path from 'path';
22
import OpenAI from 'openai';
33
import { Pinecone } from '@pinecone-database/pinecone';
4-
import { getEmbedding } from '../../../../stacks/openai/getEmbedding';
4+
import { getEmbedding } from '../../../stacks/openai/getEmbedding';
55
import { readExplainFiles } from '../lib/utils';
66
import { BoilerplateMetadata } from '../lib/types';
77
import { combineSkeleton } from '../../createSkeleton';

src/stack/integrations/lib/indexMarkdown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Pinecone, PineconeRecord } from '@pinecone-database/pinecone';
22

3-
import { getEmbedding } from '../../../../stacks/openai/getEmbedding';
3+
import { getEmbedding } from '../../../stacks/openai/getEmbedding';
44
import { models } from '../replicate/documentation/shortenedModels';
55

66
const pinecone = new Pinecone({
File renamed without changes.
File renamed without changes.
File renamed without changes.

test-workspace/fixtures/2KeysInOutput/output.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ stack('this is an example', {
66
},
77
});
88
import exampleFunction from '../../stacks/exampleFunction';
9-
109
await exampleFunction('this is a brief');
10+
1111

1212
/**
1313
* Brief: this is an example
Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
1-
stack(
2-
'brief',
3-
{
4-
'in': ['this \'\'\'is an example', 'this is an example', '{"test": "json to confuse the parser"}'],
5-
}
6-
);
1+
await nullifyInput(['this \'\'\'is an example', 'this is an example', '{"test": "json to confuse the parser"}']);
72

83
// TODO: allow the usage of in a string, but for now incentiviwe people to use in: ['this is an example', 'this is an example']
94

10-
stack(
11-
'brief',
12-
{
13-
'in': ['this \'\'\'is an example', 'this is an example', '{"test": "json to confuse the parser"}'],
14-
}
15-
);
5+
await nullifyInput(['this \'\'\'is an example', 'this is an example', '{"test": "json to confuse the parser"}']);
166

177
// TODO: allow the usage of in a string, but for now incentiviwe people to use in: ['this is an example', 'this is an example']
188

test-workspace/fixtures/callWithAwait/input.ts

Whitespace-only changes.

0 commit comments

Comments
 (0)