144 lines
5.0 KiB
JSON
144 lines
5.0 KiB
JSON
|
|
{
|
||
|
|
"name": "@azure/openai",
|
||
|
|
"version": "2.0.0",
|
||
|
|
"description": "A companion library to openai for Azure OpenAI.",
|
||
|
|
"sdk-type": "client",
|
||
|
|
"main": "./dist/commonjs/index.js",
|
||
|
|
"browser": "./dist/browser/index.js",
|
||
|
|
"types": "./dist/commonjs/index.d.ts",
|
||
|
|
"exports": {
|
||
|
|
"./package.json": "./package.json",
|
||
|
|
".": {
|
||
|
|
"browser": {
|
||
|
|
"types": "./dist/browser/index.d.ts",
|
||
|
|
"default": "./dist/browser/index.js"
|
||
|
|
},
|
||
|
|
"import": {
|
||
|
|
"types": "./dist/esm/index.d.ts",
|
||
|
|
"default": "./dist/esm/index.js"
|
||
|
|
},
|
||
|
|
"require": {
|
||
|
|
"types": "./dist/commonjs/index.d.ts",
|
||
|
|
"default": "./dist/commonjs/index.js"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"./types": {
|
||
|
|
"browser": {
|
||
|
|
"types": "./dist/browser/types/index.d.ts",
|
||
|
|
"default": "./dist/browser/types/index.js"
|
||
|
|
},
|
||
|
|
"import": {
|
||
|
|
"types": "./dist/esm/types/index.d.ts",
|
||
|
|
"default": "./dist/esm/types/index.js"
|
||
|
|
},
|
||
|
|
"require": {
|
||
|
|
"types": "./dist/commonjs/types/index.d.ts",
|
||
|
|
"default": "./dist/commonjs/types/index.js"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"files": [
|
||
|
|
"dist/",
|
||
|
|
"README.md",
|
||
|
|
"LICENSE"
|
||
|
|
],
|
||
|
|
"tshy": {
|
||
|
|
"exports": {
|
||
|
|
"./package.json": "./package.json",
|
||
|
|
".": "./src/index.ts",
|
||
|
|
"./types": "./src/types/index.ts"
|
||
|
|
},
|
||
|
|
"dialects": [
|
||
|
|
"esm",
|
||
|
|
"commonjs"
|
||
|
|
],
|
||
|
|
"esmDialects": [
|
||
|
|
"browser"
|
||
|
|
],
|
||
|
|
"selfLink": false
|
||
|
|
},
|
||
|
|
"scripts": {
|
||
|
|
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
|
||
|
|
"build:samples": "echo Obsolete",
|
||
|
|
"build:test": "dev-tool run build-package && dev-tool run build-test",
|
||
|
|
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
|
||
|
|
"clean": "dev-tool run vendored rimraf --glob dist dist-* temp types *.tgz *.log",
|
||
|
|
"execute:samples": "dev-tool samples run samples-dev",
|
||
|
|
"extract-api": "dev-tool run build-package && dev-tool run extract-api",
|
||
|
|
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
|
||
|
|
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
||
|
|
"integration-test:browser": "dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --no-test-proxy --browser",
|
||
|
|
"integration-test:node": "dev-tool run test:vitest --no-test-proxy",
|
||
|
|
"lint": "eslint README.md package.json api-extractor.json src",
|
||
|
|
"lint:fix": "eslint README.md package.json api-extractor.json src --fix --fix-type [problem,suggestion]",
|
||
|
|
"pack": "npm pack 2>&1",
|
||
|
|
"test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run build-test && npm run unit-test:browser && npm run integration-test",
|
||
|
|
"test:browser": "npm run clean && npm run build:test && npm run integration-test:browser",
|
||
|
|
"test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node",
|
||
|
|
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
||
|
|
"unit-test:browser": "echo skipped",
|
||
|
|
"unit-test:node": "echo skipped",
|
||
|
|
"update-snippets": "echo skipped"
|
||
|
|
},
|
||
|
|
"repository": "github:Azure/azure-sdk-for-js",
|
||
|
|
"engines": {
|
||
|
|
"node": ">=18.0.0"
|
||
|
|
},
|
||
|
|
"keywords": [
|
||
|
|
"node",
|
||
|
|
"azure",
|
||
|
|
"cloud",
|
||
|
|
"typescript",
|
||
|
|
"browser",
|
||
|
|
"isomorphic",
|
||
|
|
"openai",
|
||
|
|
"ai"
|
||
|
|
],
|
||
|
|
"author": "Microsoft Corporation",
|
||
|
|
"license": "MIT",
|
||
|
|
"bugs": {
|
||
|
|
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
||
|
|
},
|
||
|
|
"homepage": "https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/openai/openai/README.md",
|
||
|
|
"sideEffects": false,
|
||
|
|
"prettier": "@azure/eslint-plugin-azure-sdk/prettier.json",
|
||
|
|
"devDependencies": {
|
||
|
|
"@azure-tools/test-credential": "^2.0.0",
|
||
|
|
"@azure-tools/test-recorder": "^4.1.0",
|
||
|
|
"@azure-tools/test-utils-vitest": "^1.0.0",
|
||
|
|
"@azure/arm-cognitiveservices": "^7.5.0",
|
||
|
|
"@azure/core-rest-pipeline": "^1.16.2",
|
||
|
|
"@azure/core-util": "^1.9.1",
|
||
|
|
"@azure/dev-tool": "^1.0.0",
|
||
|
|
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
|
||
|
|
"@azure/identity": "^4.2.0",
|
||
|
|
"@azure/logger": "^1.1.3",
|
||
|
|
"@types/node": "^18.0.0",
|
||
|
|
"@vitest/browser": "^2.0.4",
|
||
|
|
"@vitest/coverage-istanbul": "^2.0.4",
|
||
|
|
"dotenv": "^16.0.0",
|
||
|
|
"eslint": "^9.9.0",
|
||
|
|
"openai": "^4.47.2",
|
||
|
|
"playwright": "^1.45.3",
|
||
|
|
"typescript": "~5.6.2",
|
||
|
|
"vitest": "^2.0.4"
|
||
|
|
},
|
||
|
|
"dependencies": {
|
||
|
|
"@azure-rest/core-client": "^2.2.0",
|
||
|
|
"tslib": "^2.6.3"
|
||
|
|
},
|
||
|
|
"//sampleConfiguration": {
|
||
|
|
"productName": "Azure OpenAI",
|
||
|
|
"productSlugs": [
|
||
|
|
"azure",
|
||
|
|
"azure-cognitive-services",
|
||
|
|
"azure-openai"
|
||
|
|
],
|
||
|
|
"requiredResources": {
|
||
|
|
"Azure Cognitive Services instance": "https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"type": "module",
|
||
|
|
"module": "./dist/esm/index.js"
|
||
|
|
}
|