@fencyai/js 0.1.66 → 0.1.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/createStream.d.ts +2 -1
- package/lib/index.d.ts +1 -25
- package/lib/index.js +1 -0
- package/lib/types/CreateClaudeChatCompletionRequestParams.d.ts +1 -1
- package/lib/types/CreateGeminiChatCompletionRequestParams.d.ts +1 -1
- package/lib/types/index.d.ts +29 -0
- package/lib/types/index.js +1 -0
- package/package.json +2 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { CreateStreamRequest
|
|
1
|
+
import { CreateStreamRequest } from '../types/CreateStreamRequest';
|
|
2
|
+
import { CreateStreamResponse } from '../types/CreateStreamResponse';
|
|
2
3
|
/**
|
|
3
4
|
* Creates a new stream by making a POST request to the Fency API.
|
|
4
5
|
*
|
package/lib/index.d.ts
CHANGED
|
@@ -2,42 +2,18 @@ import { createChatCompletion } from './api/createChatCompletion';
|
|
|
2
2
|
import { createStream } from './api/createStream';
|
|
3
3
|
import { loadFency } from './loadFency';
|
|
4
4
|
export type { FencyInstance, FencyOptions } from './types';
|
|
5
|
-
export
|
|
6
|
-
export type { ChatCompletion, isChatCompletion } from './types/ChatCompletion';
|
|
7
|
-
export type { ChatCompletionMessage } from './types/ChatCompletionMessage';
|
|
8
|
-
export type { ClaudeChatCompletionMessage } from './types/ClaudeChatCompletionMessage';
|
|
9
|
-
export type { CreateChatCompletionRequest } from './types/CreateChatCompletionRequest';
|
|
10
|
-
export type { CreateClaudeChatCompletionRequestParams } from './types/CreateClaudeChatCompletionRequestParams';
|
|
11
|
-
export type { CreateGeminiChatCompletionRequestParams } from './types/CreateGeminiChatCompletionRequestParams';
|
|
12
|
-
export type { CreateOpenAiChatCompletionRequestParams } from './types/CreateOpenAiChatCompletionRequestParams';
|
|
13
|
-
export type { CreateStreamRequest } from './types/CreateStreamRequest';
|
|
14
|
-
export type { CreateStreamResponse } from './types/CreateStreamResponse';
|
|
15
|
-
export type { CreateWebsiteRequest } from './types/CreateWebsiteRequest';
|
|
16
|
-
export type { FencyFile } from './types/FencyFile';
|
|
17
|
-
export type { GeminiChatCompletionMessage } from './types/GeminiChatCompletionMessage';
|
|
18
|
-
export type { GeminiModel } from './types/GeminiModel';
|
|
19
|
-
export type { OpenAiModel } from './types/OpenAiModel';
|
|
20
|
-
export type { Stream } from './types/Stream';
|
|
21
|
-
export type { Website } from './types/Website';
|
|
5
|
+
export * from './types/index';
|
|
22
6
|
export { createChatCompletion } from './api/createChatCompletion';
|
|
23
7
|
export type { CreateChatCompletionResponse } from './api/createChatCompletion';
|
|
24
8
|
export { searchFiles } from './api/searchFiles';
|
|
25
9
|
export type { FileSearchItem, FileSearchResponse } from './openapi';
|
|
26
|
-
export type { SearchFilesRequest } from './types/SearchFilesRequest';
|
|
27
|
-
export type { SearchFilesResponse } from './types/SearchFilesResponse';
|
|
28
10
|
export { createFile } from './api/createFile';
|
|
29
11
|
export type { S3PostRequestDto } from './openapi';
|
|
30
|
-
export type { CreateFileRequest } from './types/CreateFileRequest';
|
|
31
|
-
export type { CreateFileResponse } from './types/CreateFileResponse';
|
|
32
12
|
export { createStream } from './api/createStream';
|
|
33
13
|
export type { ChatCompletionStreamCompletedEventDto, FileTextContentReadyEventDto, FileUploadCompletedEventDto, NewChatCompletionStreamChunkEventDto, StreamNotFoundEventDto, StreamTimeoutEventDto, WebsiteHtmlContentReadyEventDto, WebsiteTextContentReadyEventDto, } from './openapi';
|
|
34
14
|
export { listFiles } from './api/listFiles';
|
|
35
|
-
export type { ListFilesRequest } from './types/ListFilesRequest';
|
|
36
|
-
export type { ListFilesResponse } from './types/ListFilesResponse';
|
|
37
15
|
export { createWebsite } from './api/createWebsite';
|
|
38
|
-
export type { CreateWebsiteResponse } from './types/CreateWebsiteResponse';
|
|
39
16
|
export { loadFency } from './loadFency';
|
|
40
|
-
export type { ApiError } from './types/ApiError';
|
|
41
17
|
declare const _default: {
|
|
42
18
|
loadFency: typeof loadFency;
|
|
43
19
|
createChatCompletion: typeof createChatCompletion;
|
package/lib/index.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { createChatCompletion } from './api/createChatCompletion';
|
|
5
5
|
import { createStream } from './api/createStream';
|
|
6
6
|
import { loadFency } from './loadFency';
|
|
7
|
+
export * from './types/index';
|
|
7
8
|
// create chat completion
|
|
8
9
|
export { createChatCompletion } from './api/createChatCompletion';
|
|
9
10
|
// search files
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GeminiModel } from '..';
|
|
2
1
|
import { GeminiChatCompletionMessage } from './GeminiChatCompletionMessage';
|
|
2
|
+
import { GeminiModel } from './GeminiModel';
|
|
3
3
|
export type CreateGeminiChatCompletionRequestParams = {
|
|
4
4
|
model: GeminiModel;
|
|
5
5
|
messages: Array<GeminiChatCompletionMessage>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type { AnthropicModel } from './AnthropicModel';
|
|
2
|
+
export type { ApiError } from './ApiError';
|
|
3
|
+
export type { ChatCompletion } from './ChatCompletion';
|
|
4
|
+
export { isChatCompletion } from './ChatCompletion';
|
|
5
|
+
export type { ChatCompletionMessage } from './ChatCompletionMessage';
|
|
6
|
+
export type { ClaudeChatCompletionMessage } from './ClaudeChatCompletionMessage';
|
|
7
|
+
export type { CreateChatCompletionRequest } from './CreateChatCompletionRequest';
|
|
8
|
+
export type { CreateClaudeChatCompletionRequestParams } from './CreateClaudeChatCompletionRequestParams';
|
|
9
|
+
export type { CreateFileRequest } from './CreateFileRequest';
|
|
10
|
+
export type { CreateFileResponse } from './CreateFileResponse';
|
|
11
|
+
export type { CreateGeminiChatCompletionRequestParams } from './CreateGeminiChatCompletionRequestParams';
|
|
12
|
+
export type { CreateOpenAiChatCompletionRequestParams } from './CreateOpenAiChatCompletionRequestParams';
|
|
13
|
+
export type { CreateStreamRequest } from './CreateStreamRequest';
|
|
14
|
+
export type { CreateStreamResponse } from './CreateStreamResponse';
|
|
15
|
+
export type { CreateWebsiteRequest } from './CreateWebsiteRequest';
|
|
16
|
+
export type { CreateWebsiteResponse } from './CreateWebsiteResponse';
|
|
17
|
+
export type { FencyFile } from './FencyFile';
|
|
18
|
+
export type { FencyListFileItem } from './FencyListFileItem';
|
|
19
|
+
export type { FileSearchItem } from './FileSearchItem';
|
|
20
|
+
export type { GeminiChatCompletionMessage } from './GeminiChatCompletionMessage';
|
|
21
|
+
export type { GeminiModel } from './GeminiModel';
|
|
22
|
+
export type { ListFilesRequest } from './ListFilesRequest';
|
|
23
|
+
export type { ListFilesResponse } from './ListFilesResponse';
|
|
24
|
+
export type { OpenAiModel } from './OpenAiModel';
|
|
25
|
+
export type { S3PostRequest } from './S3PostRequest';
|
|
26
|
+
export type { SearchFilesRequest } from './SearchFilesRequest';
|
|
27
|
+
export type { SearchFilesResponse } from './SearchFilesResponse';
|
|
28
|
+
export type { Stream } from './Stream';
|
|
29
|
+
export type { Website } from './Website';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { isChatCompletion } from './ChatCompletion';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fencyai/js",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.67",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "staklau <steinaageklaussen@gmail.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"ts-jest": "^29.1.1",
|
|
43
43
|
"typescript": "^5.3.3"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "38e0df0856f37eba1770f382dc3fba6cbc6159fa"
|
|
46
46
|
}
|