Comparing version 0.2.6 to 0.2.7
@@ -6,6 +6,6 @@ "use strict"; | ||
const express_1 = tslib_1.__importDefault(require("express")); | ||
const ds_1 = require("./ds"); | ||
const chat_1 = tslib_1.__importDefault(require("./routes/chat")); | ||
const image_1 = tslib_1.__importDefault(require("./routes/image")); | ||
const text_1 = tslib_1.__importDefault(require("./routes/text")); | ||
const ds_1 = require("./utils/ds"); | ||
async function createApp(opts = {}) { | ||
@@ -12,0 +12,0 @@ var _a, _b, _c; |
@@ -0,3 +1,3 @@ | ||
import { AIMockDS } from '../ds'; | ||
import { MockType } from '../types'; | ||
import { AIMockDS } from '../utils/ds'; | ||
export declare function chat(ds: AIMockDS, opts?: { | ||
@@ -4,0 +4,0 @@ type?: MockType; |
@@ -6,3 +6,3 @@ "use strict"; | ||
const express_1 = tslib_1.__importDefault(require("express")); | ||
const tokenize_1 = require("../utils/tokenize"); | ||
const tokenize_1 = require("../tokenize"); | ||
function chat(ds, opts = {}) { | ||
@@ -9,0 +9,0 @@ const router = express_1.default.Router(); |
import express from 'express'; | ||
import { AIMockDS } from '../ds'; | ||
import { MockType } from '../types'; | ||
import { AIMockDS } from '../utils/ds'; | ||
export declare function text(ds: AIMockDS, opts?: { | ||
@@ -5,0 +5,0 @@ type?: MockType; |
@@ -6,3 +6,3 @@ "use strict"; | ||
const express_1 = tslib_1.__importDefault(require("express")); | ||
const tokenize_1 = require("../utils/tokenize"); | ||
const tokenize_1 = require("../tokenize"); | ||
function text(ds, opts = {}) { | ||
@@ -9,0 +9,0 @@ const router = express_1.default.Router(); |
{ | ||
"name": "aimock", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"description": "An OpenAI api simulator for developing and testing", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
import express, {Express, Request, Response} from 'express'; | ||
import {Server} from 'net'; | ||
import {AIMockDS} from './ds'; | ||
import chat from './routes/chat'; | ||
@@ -8,3 +9,2 @@ import image from './routes/image'; | ||
import {MockType} from './types'; | ||
import {AIMockDS} from './utils/ds'; | ||
@@ -11,0 +11,0 @@ export interface MockApplicationOptions { |
import express, {Request, Response} from 'express'; | ||
import {AIMockDS} from '../ds'; | ||
import {tokenize} from '../tokenize'; | ||
import {MockType, openai} from '../types'; | ||
import {AIMockDS} from '../utils/ds'; | ||
import {tokenize} from '../utils/tokenize'; | ||
@@ -7,0 +7,0 @@ interface Message { |
import express, {Request, Response, Router} from 'express'; | ||
import {AIMockDS} from '../ds'; | ||
import {tokenize} from '../tokenize'; | ||
import {MockType} from '../types'; | ||
import {AIMockDS} from '../utils/ds'; | ||
import {tokenize} from '../utils/tokenize'; | ||
@@ -7,0 +7,0 @@ interface RequestBody { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6
67567
41
1401