Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
162 commits
Select commit Hold shift + click to select a range
e9a92ee
Update README.md
szerintedmi Jun 12, 2023
aea6b38
Merge branch 'staging' of https://github.com/PromptOn/prompton into s…
szerintedmi Jun 12, 2023
f1552d1
schema change for inference by prompt_id
szerintedmi Jun 12, 2023
6e04396
vscode folders b/c python interpreter confusion
szerintedmi Jun 12, 2023
dab7069
raise for now for inference by prompt_id
szerintedmi Jun 12, 2023
094c3c0
typing fixes for mypy
szerintedmi Jun 12, 2023
3dfce0e
Update OpenAPI spec by Server Tests 5248394794 214
github-actions[bot] Jun 12, 2023
cb0db6c
housekeeping
szerintedmi Jun 13, 2023
a7cc3b2
housekeeping unused import & misc formatting
szerintedmi Jun 13, 2023
fc57e1d
linting: mypy, flake8, pyright (only just cmd)
szerintedmi Jun 13, 2023
41a3a68
Merge branch 'inference-by-prompt_id' of https://github.com/PromptOn/…
szerintedmi Jun 13, 2023
4bbdc20
add projection param to base crud get_multi_raw
szerintedmi Jun 13, 2023
27778ca
inference by prompt_id
szerintedmi Jun 13, 2023
35ef5f8
bump fern to 0.10.24
szerintedmi Jun 13, 2023
ff730cb
python_sdk version to 0.0.3 & allow python >=3.7
szerintedmi Jun 13, 2023
442e5d4
cp openapi.yml in generate-clients just cmd
szerintedmi Jun 13, 2023
f17aa26
update clients based on latest server openapi.yml
szerintedmi Jun 13, 2023
f04e657
update streamlit ex. to prompton 0.0.3
szerintedmi Jun 13, 2023
d94b007
Merge pull request #40 from PromptOn/inference-by-prompt_id
szerintedmi Jun 13, 2023
10f8592
Merge branch 'staging' of https://github.com/PromptOn/prompton into s…
szerintedmi Jun 13, 2023
19d7801
ferm typescript-node-sdk generator to 0.6.4
szerintedmi Jun 13, 2023
29db42d
first npm publish
szerintedmi Jun 14, 2023
967aaea
node sdk v0.0.2 - npm package main path fix
szerintedmi Jun 14, 2023
c270003
justfile housekeeping
szerintedmi Jun 14, 2023
8a43432
more TODO
szerintedmi Jun 14, 2023
ab9cbfb
adding js-base64 & publish ts client 0.0.4
szerintedmi Jun 14, 2023
4d50f33
ex. node client link in readme + minor tweaks
szerintedmi Jun 14, 2023
32335da
Merge pull request #41 from PromptOn/typescript-sdk-publish
szerintedmi Jun 14, 2023
9a8bd42
Merge branch 'staging' of https://github.com/PromptOn/prompton into s…
szerintedmi Jun 14, 2023
67a4044
remove first_message from InferenceResponseData
szerintedmi Jun 14, 2023
0710564
pydantic fastapi pyright pytest mnr version bump
szerintedmi Jun 14, 2023
1135e90
make source and end_user_id optional for inference
szerintedmi Jun 14, 2023
255b9aa
jwt expire default to 60mins + request timeout doc
szerintedmi Jun 14, 2023
37a505e
add db index to inferences.end_user_id
szerintedmi Jun 14, 2023
d0499fb
added client_ref_id to inference
szerintedmi Jun 14, 2023
2de2993
endpoint renaming for consistency
szerintedmi Jun 14, 2023
35754f0
Update OpenAPI spec by Server Tests 5272835326 222
github-actions[bot] Jun 14, 2023
7476755
Merge branch 'inference-endpoint-refinements' of https://github.com/P…
szerintedmi Jun 14, 2023
33eb0d2
node sdk to 0.0.5, python sdk to 0.0.4
szerintedmi Jun 14, 2023
b4f742b
Merge pull request #42 from PromptOn/inference-endpoint-refinements
szerintedmi Jun 14, 2023
36b0835
extra.allow .ignore tests - fix parked
szerintedmi Jun 15, 2023
9678f8e
Merge branch 'staging' into inference-endpoint-refinements
szerintedmi Jun 15, 2023
8aa0be4
Merge branch 'inference-endpoint-refinements' of https://github.com/P…
szerintedmi Jun 15, 2023
806d22c
Merge branch 'staging' of https://github.com/PromptOn/prompton into s…
szerintedmi Jun 15, 2023
b49497d
Merge pull request #43 from PromptOn/inference-endpoint-refinements
szerintedmi Jun 16, 2023
3e5d110
Merge branch 'staging' of https://github.com/PromptOn/prompton into s…
szerintedmi Jun 16, 2023
bb724fa
sdk to 0.0.4
szerintedmi Jun 16, 2023
b37e5cd
Merge pull request #44 from PromptOn/sdk-to-0_0_4
szerintedmi Jun 16, 2023
a30e0c9
Merge branch 'staging' of https://github.com/PromptOn/prompton into s…
szerintedmi Jun 16, 2023
b9dadd9
quick & dirty promptversion maintenance UI
szerintedmi Jun 17, 2023
30e2949
Merge pull request #45 from PromptOn/ui-example-tweaks
szerintedmi Jun 17, 2023
d3bcf78
Merge branch 'staging' of https://github.com/PromptOn/prompton into s…
szerintedmi Jun 17, 2023
f539e56
partially working openai-generator node
szerintedmi Jun 17, 2023
9d9f487
Merge pull request #46 from PromptOn/client-generators-experiments
szerintedmi Jun 17, 2023
184856c
Bump json5 and rewire in /clients/openapi-generator/typescript-node
dependabot[bot] Jun 17, 2023
c77fa68
Merge branch 'staging' of https://github.com/PromptOn/prompton into s…
szerintedmi Jun 17, 2023
0362614
Merge branch 'staging' into dependabot/npm_and_yarn/clients/openapi-g…
szerintedmi Jun 17, 2023
8c8bed4
Merge pull request #47 from PromptOn/dependabot/npm_and_yarn/clients/…
szerintedmi Jun 17, 2023
7f5b27b
Merge branch 'staging' of https://github.com/PromptOn/prompton into s…
szerintedmi Jun 17, 2023
862a11f
ui examples to separate repo
szerintedmi Jun 17, 2023
15d83b5
Merge pull request #48 from PromptOn/ui-examples-to-separate-repo
szerintedmi Jun 17, 2023
61a3f4c
Merge branch 'staging' of https://github.com/PromptOn/prompton into s…
szerintedmi Jun 17, 2023
1f384b8
all db fields with defaults to mandatory in read
szerintedmi Jun 18, 2023
a4e6ce1
Update OpenAPI spec by Server Tests 5304559601 230
github-actions[bot] Jun 18, 2023
215b5fd
Merge branch 'schema-finessing-for-sdk' of https://github.com/PromptO…
szerintedmi Jun 18, 2023
e46ede4
fastapi to 0.97.0
szerintedmi Jun 18, 2023
8cbf744
set msg in inference mock
szerintedmi Jun 18, 2023
cdc5341
template_args {} instead of null for SDK convi
szerintedmi Jun 18, 2023
b640561
inference error schema refactor
szerintedmi Jun 18, 2023
a8ab549
Update OpenAPI spec by Server Tests 5304973890 232
github-actions[bot] Jun 18, 2023
32101b9
Merge branch 'schema-finessing-for-sdk' of https://github.com/PromptO…
szerintedmi Jun 18, 2023
ad29ba5
mongomock-motor to 0.0.20 + lock fastapi ver
szerintedmi Jun 18, 2023
4d6fce2
fern-api to 0.10.26, fern-ts generator to 0.7.1
szerintedmi Jun 18, 2023
0f5679a
node 0.0.6 (ren to prompton-sdk) + python to 0.0.5
szerintedmi Jun 18, 2023
a59c1c7
Merge pull request #49 from PromptOn/schema-finessing-for-sdk
szerintedmi Jun 18, 2023
b97cac6
Merge branch 'staging' of https://github.com/PromptOn/prompton into s…
szerintedmi Jun 18, 2023
725b48b
sort param to get_multi & default sort by _id DESC
szerintedmi Jun 19, 2023
850143b
just some just client generator commands for test
szerintedmi Jun 19, 2023
3d93fb9
Merge pull request #50 from PromptOn/default-sort-by-id
szerintedmi Jun 19, 2023
300d42b
Merge branch 'staging' of https://github.com/PromptOn/prompton into s…
szerintedmi Jun 19, 2023
ee692a1
prompt_version.template default value to []
szerintedmi Jun 19, 2023
ce06595
Update OpenAPI spec by Server Tests 5314867314 239
github-actions[bot] Jun 19, 2023
008d345
Merge branch 'prompt_version.template-default-value-quickfix' of http…
szerintedmi Jun 19, 2023
7263513
Merge pull request #51 from PromptOn/prompt_version.template-default-…
szerintedmi Jun 19, 2023
daff3d2
Merge branch 'staging' of https://github.com/PromptOn/prompton into s…
szerintedmi Jun 19, 2023
a30626e
mypy to 1.4.0
szerintedmi Jun 22, 2023
85f4e95
pyright to 1.1.315
szerintedmi Jun 22, 2023
9dc60ab
motor to 4.4.0
szerintedmi Jun 22, 2023
79d7af5
Revert "motor to 4.4.0"
szerintedmi Jun 22, 2023
dae7e70
motor to 3.2.0
szerintedmi Jun 22, 2023
bc094b7
Merge pull request #52 from PromptOn/version-bumps
szerintedmi Jun 22, 2023
b8d7883
Merge branch 'staging' of https://github.com/PromptOn/prompton into s…
szerintedmi Jun 22, 2023
9a602da
schema first pass
szerintedmi Jun 22, 2023
08612c7
typo
szerintedmi Jun 22, 2023
2ddf3c6
dev mongodb version to Atlas version (6.0.6)
szerintedmi Jun 22, 2023
4471c06
db indexes for feedback
szerintedmi Jun 22, 2023
defc8b1
define POST response schema for openapi docs
szerintedmi Jun 22, 2023
ad6cbdf
DB index for feedbacks.prompt_version_id
szerintedmi Jun 22, 2023
5cd8b0e
doc email exists code + change status code to 409
szerintedmi Jun 22, 2023
987413c
no need for unique index on feedback
szerintedmi Jun 23, 2023
e76408c
minor housekeeping
szerintedmi Jun 23, 2023
7c1ada5
feedbacks feature
szerintedmi Jun 23, 2023
5240c11
Update OpenAPI spec by Server Tests 5355419149 248
github-actions[bot] Jun 23, 2023
eefeffb
Merge branch 'feedback-mvp' of https://github.com/PromptOn/prompton i…
szerintedmi Jun 23, 2023
54e8b93
SDK regen for new /feedbacks endpoint
szerintedmi Jun 23, 2023
a1ff3bc
Merge pull request #53 from PromptOn/feedback-mvp
szerintedmi Jun 23, 2023
65d7be6
Merge branch 'staging' of https://github.com/PromptOn/prompton into s…
szerintedmi Jun 23, 2023
5300625
SDK versions to 0.0.7
szerintedmi Jun 23, 2023
ded579e
Merge pull request #54 from PromptOn/bump-sdk-versions
szerintedmi Jun 23, 2023
e0df7f0
Merge branch 'staging' of https://github.com/PromptOn/prompton into s…
szerintedmi Jun 23, 2023
2bf0e7c
privacy policy for google oauth
szerintedmi Jun 27, 2023
bbee965
Merge pull request #55 from PromptOn/google-oauth
szerintedmi Jun 27, 2023
4cc9430
Create CNAME
szerintedmi Jun 27, 2023
2a096d2
tos fos
szerintedmi Jun 27, 2023
5bb30f3
Update CNAME
szerintedmi Jun 27, 2023
8272314
tos fos2
szerintedmi Jun 27, 2023
83f37f5
Merge branch 'staging' into google-oauth
szerintedmi Jun 27, 2023
d55d63b
Merge pull request #56 from PromptOn/google-oauth
szerintedmi Jun 27, 2023
64af028
Merge branch 'google-oauth' of https://github.com/PromptOn/prompton i…
szerintedmi Jun 27, 2023
c7298ee
Update CNAME
szerintedmi Jun 27, 2023
29a781c
make secret env vars SecretStr
szerintedmi Jun 27, 2023
e0f3850
fix merge trash
szerintedmi Jun 27, 2023
2b864e9
added feedbacks.created_by_org_id DB index
szerintedmi Jun 28, 2023
4c2cd10
orgs.google_sso_domain schema field & index
szerintedmi Jun 28, 2023
ea028bc
oauth_domain DB field instead google_sso_domain
szerintedmi Jun 30, 2023
851bb5c
flak8 linting into just lint
szerintedmi Jun 30, 2023
1f60dcc
google oauth v0
szerintedmi Jun 30, 2023
23e0338
Update OpenAPI spec by Server Tests 5422397918 254
github-actions[bot] Jun 30, 2023
8275a0f
Merge branch 'google-oauth' of https://github.com/PromptOn/prompton i…
szerintedmi Jun 30, 2023
78eb2f1
Merge branch 'staging' into google-oauth
szerintedmi Jun 30, 2023
a0f4818
Merge branch 'google-oauth' of https://github.com/PromptOn/prompton i…
szerintedmi Jun 30, 2023
127e97f
version bumps fastapi to 0.98
szerintedmi Jun 30, 2023
15dfb13
fern to 0.11.2
szerintedmi Jun 30, 2023
a742ec2
python and node sdk 0.0.8
szerintedmi Jun 30, 2023
f7d9465
prompt admin role
szerintedmi Jun 30, 2023
ec3a7c3
Update OpenAPI spec by Server Tests 5422889801 262
github-actions[bot] Jun 30, 2023
5645ab0
Merge branch 'google-oauth' of https://github.com/PromptOn/prompton i…
szerintedmi Jun 30, 2023
9b2e9d4
client sdks to 0.0.9
szerintedmi Jun 30, 2023
2c4bb8a
Merge pull request #58 from PromptOn/google-oauth
szerintedmi Jun 30, 2023
b9fab7e
add env secrets for google auth
szerintedmi Jun 30, 2023
537298b
Merge branch 'staging' into google-oauth
szerintedmi Jun 30, 2023
ead0619
Merge branch 'google-oauth' of https://github.com/PromptOn/prompton i…
szerintedmi Jun 30, 2023
2650e6c
Merge pull request #59 from PromptOn/google-oauth
szerintedmi Jun 30, 2023
bbd872d
recover request protocol for callback
szerintedmi Jun 30, 2023
f8b4dec
Merge branch 'staging' into google-oauth
szerintedmi Jun 30, 2023
d4d4265
Merge branch 'google-oauth' of https://github.com/PromptOn/prompton i…
szerintedmi Jun 30, 2023
b26886c
Merge pull request #60 from PromptOn/google-oauth
szerintedmi Jun 30, 2023
372cc01
figure referer protocol without reverse proxy
szerintedmi Jun 30, 2023
8ab867d
Merge branch 'staging' into google-oauth
szerintedmi Jun 30, 2023
768d0ed
Merge branch 'google-oauth' of https://github.com/PromptOn/prompton i…
szerintedmi Jun 30, 2023
9bfdd25
Merge pull request #61 from PromptOn/google-oauth
szerintedmi Jun 30, 2023
0a20dbc
org.oauth_domain field to read schema
szerintedmi Jul 3, 2023
981f1b6
Update OpenAPI spec by Server Tests 5446267071 281
github-actions[bot] Jul 3, 2023
d9c0566
Merge pull request #62 from PromptOn/google-oauth
szerintedmi Jul 3, 2023
f2d963c
Merge branch 'google-oauth' of https://github.com/PromptOn/prompton i…
szerintedmi Jul 3, 2023
343773b
python and node sdks 0.0.10
szerintedmi Jul 3, 2023
7dda978
Merge branch 'staging' into google-oauth
szerintedmi Jul 3, 2023
83afa7f
Merge branch 'google-oauth' of https://github.com/PromptOn/prompton i…
szerintedmi Jul 3, 2023
548d191
Merge pull request #63 from PromptOn/google-oauth
szerintedmi Jul 3, 2023
278a852
Merge branch 'staging' of https://github.com/PromptOn/prompton into s…
szerintedmi Jul 3, 2023
f37942a
change to MIT license
szerintedmi Sep 24, 2025
4bb9c5a
Merge branch 'main' into staging
szerintedmi Sep 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .github/workflows/gcr-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ jobs:
MONGO_DATABASE=${{ vars.MONGO_DATABASE }}
DATABASE_URL=${{ secrets.DATABASE_URL }}
JWT_SECRET_KEY=${{ secrets.JWT_SECRET_KEY }}
GOOGLE_CLIENT_ID=${{ secrets.GOOGLE_CLIENT_ID }}
GOOGLE_CLIENT_SECRET=${{ secrets.GOOGLE_CLIENT_SECRET }}
STARLETTE_SESSION_SECRET=${{ secrets.STARLETTE_SESSION_SECRET }}
GITHUB_SHA=${{ github.sha }}
GITHUB_ENV=${{ env.GITHUB_ENV }}
# TODO: JWT_SECRET_KEY and DATABASE_URL should be passed as secret b/c it's exposed in gcloud run logs
Expand Down
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
www.prompton.ai
682 changes: 21 additions & 661 deletions LICENSE

Large diffs are not rendered by default.

41 changes: 21 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,30 +31,37 @@ PromptOn helps you to:

It's a REST API microservice designed to mix it into your existing ecosystem in a non intrusive way.

_The API is still in alpha, may change without notice. However, the schema is largely stable and it will soon enter production when proper versioning will be introduced._

## Getting started

### Endpoint UI & docs
### Endpoint UI & docs

The easiest way to try is via the [Prompton API documentation UI](https://staging.api.prompton.ai) on our hosted staging environment.

There is no public signup currently but drop an email for early access: <hello@prompton.ai>

### Client SDKs
### Client SDKs

#### Python
#### Python

```sh
pip install prompton
```

Basic [Streamlit UI example](./ui-examples/streamlit/main.py)
[Streamlit UI example](https://github.com/PromptOn/ui-example-streamlit)

#### Typescript

Package is not published yet but you can try it from [clients folder in the repo](./clients/fern/api/node_sdk/prompton)

To install local dev env: [Local setup](#local_dev_setup)
#### Typescript

```sh
npm install prompton
```

[Typescript Node example repo](https://github.com/PromptOn/client-example-type-script-node)

The API is still in alpha, may change without notice. However, the schema is largely stable and it will soon enter production when proper versioning will be introduced.
### Local dev setup

To install local dev env: [Local setup](#local_dev_setup)

## End-to-end example

Expand Down Expand Up @@ -83,7 +90,6 @@ The API is still in alpha, may change without notice. However, the schema is lar
```

TIP: if you just want to play around then set `openai_api_key` to any string and [mock responses](#mock_response_tip)
TIP: if you just want to play around then set `openai_api_key` to any string and [mock responses](#mock_response_tip)

1. Prompt

Expand Down Expand Up @@ -118,23 +124,18 @@ The API is still in alpha, may change without notice. However, the schema is lar

```json
{
"prompt_version_id": "<your prompt version id>",
"end_user_id": "your_end_user_id_for_linking",
"source": "swaggerdocs",
"prompt_version_id": "<your prompt version id>", // or prompt_id and it will pick one of the Live prompt versions
"end_user_id": "your_end_user_id_for_linking", // optional, passed on to provider
"template_args": {"words_limit": "10", "what": "crazy"}
}
```

It will:


1. Populate the template with the passed values
2. Log the request
3. Send the request to provider
4. Log respnse and send it back to client.
2. Log the request
3. Send the request to provider
4. Log respnse and send it back to client.
4. Log response and send it back to client.

It also handles errors, timeouts and updates the inference accordingly. It will still process response if client disconnects before it arrives.

Expand Down Expand Up @@ -280,4 +281,4 @@ just test-quick # if you want to cut a few secs by skipping slower tests (passwo

## Licence

This project is licensed under the GNU Affero General Public License v3.0 license - see the [LICENSE](LICENSE) file for details.
MIT - see the [LICENSE](LICENSE) file for details.
4 changes: 3 additions & 1 deletion clients/fern/api/generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ default-group: local
groups:
local:
generators:
# Check for newer versions: https://github.com/fern-api/fern-typescript
- name: fernapi/fern-typescript-node-sdk
version: 0.6.1
version: 0.7.1
output:
location: local-file-system
path: node_sdk/prompton

# Check for newer versions: https://github.com/fern-api/fern-python
- name: fernapi/fern-python-sdk
version: 0.3.7
output:
Expand Down
3 changes: 3 additions & 0 deletions clients/fern/api/node_sdk/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# PromptOn API - Node Typescript client

See more on [PromptOn GitHub](https://github.com/PromptOn/prompton)
23 changes: 23 additions & 0 deletions clients/fern/api/node_sdk/justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Node SDK buld & deploy scripts
default:
just --list

set dotenv-load
set positional-arguments


build *params='':
npm pack

npm-info *params='':
npm config list


# to PyPi - set NPM_ACCESS_TOKEN in your .env
publish *params='':
npm config set //registry.npmjs.org/:_authToken $NPM_ACCESS_TOKEN
npm publish $@

build-publish:
just build
just publish # npm packs no need separetly with npm publish
131 changes: 131 additions & 0 deletions clients/fern/api/node_sdk/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 38 additions & 0 deletions clients/fern/api/node_sdk/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "@prompton/prompton-sdk",
"version": "0.0.10",
"description": "Chat prompt template evaluation and inference monitoring",
"private": false,
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/PromptOn/prompton.git",
"directory": "clients/fern/api/node_sdk"
},
"main": "./prompton/index.js",
"types": "./prompton/index.d.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"openai",
"chat",
"prompts",
"chatgpt",
"gpt",
"prompt"
],
"author": "PromptOn",
"dependencies": {
"@ungap/url-search-params": "0.2.2",
"axios": "1.4.0",
"form-data": "4.0.0",
"url-join": "4.0.1",
"@types/url-join": "4.0.1",
"js-base64": "3.7.5"
},
"license": "AGPL-3.0-only"
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
9 changes: 6 additions & 3 deletions clients/fern/api/node_sdk/prompton/Client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ import { PromptVersions } from "./api/resources/promptVersions/client/Client";
import { Inferences } from "./api/resources/inferences/client/Client";
import { Orgs } from "./api/resources/orgs/client/Client";
import { Users } from "./api/resources/users/client/Client";
import { Feedbacks } from "./api/resources/feedbacks/client/Client";
export declare namespace PromptonApiClient {
interface Options {
environment: string;
environment: core.Supplier<string>;
token?: core.Supplier<core.BearerToken | undefined>;
}
}
export declare class PromptonApiClient {
protected readonly options: PromptonApiClient.Options;
constructor(options: PromptonApiClient.Options);
protected readonly _options: PromptonApiClient.Options;
constructor(_options: PromptonApiClient.Options);
protected _serverStatus: ServerStatus | undefined;
get serverStatus(): ServerStatus;
protected _authentication: Authentication | undefined;
Expand All @@ -32,4 +33,6 @@ export declare class PromptonApiClient {
get orgs(): Orgs;
protected _users: Users | undefined;
get users(): Users;
protected _feedbacks: Feedbacks | undefined;
get feedbacks(): Feedbacks;
}
23 changes: 14 additions & 9 deletions clients/fern/api/node_sdk/prompton/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,37 +11,42 @@ const Client_4 = require("./api/resources/promptVersions/client/Client");
const Client_5 = require("./api/resources/inferences/client/Client");
const Client_6 = require("./api/resources/orgs/client/Client");
const Client_7 = require("./api/resources/users/client/Client");
const Client_8 = require("./api/resources/feedbacks/client/Client");
class PromptonApiClient {
constructor(options) {
this.options = options;
constructor(_options) {
this._options = _options;
}
get serverStatus() {
var _a;
return ((_a = this._serverStatus) !== null && _a !== void 0 ? _a : (this._serverStatus = new Client_1.ServerStatus(this.options)));
return ((_a = this._serverStatus) !== null && _a !== void 0 ? _a : (this._serverStatus = new Client_1.ServerStatus(this._options)));
}
get authentication() {
var _a;
return ((_a = this._authentication) !== null && _a !== void 0 ? _a : (this._authentication = new Client_2.Authentication(this.options)));
return ((_a = this._authentication) !== null && _a !== void 0 ? _a : (this._authentication = new Client_2.Authentication(this._options)));
}
get prompts() {
var _a;
return ((_a = this._prompts) !== null && _a !== void 0 ? _a : (this._prompts = new Client_3.Prompts(this.options)));
return ((_a = this._prompts) !== null && _a !== void 0 ? _a : (this._prompts = new Client_3.Prompts(this._options)));
}
get promptVersions() {
var _a;
return ((_a = this._promptVersions) !== null && _a !== void 0 ? _a : (this._promptVersions = new Client_4.PromptVersions(this.options)));
return ((_a = this._promptVersions) !== null && _a !== void 0 ? _a : (this._promptVersions = new Client_4.PromptVersions(this._options)));
}
get inferences() {
var _a;
return ((_a = this._inferences) !== null && _a !== void 0 ? _a : (this._inferences = new Client_5.Inferences(this.options)));
return ((_a = this._inferences) !== null && _a !== void 0 ? _a : (this._inferences = new Client_5.Inferences(this._options)));
}
get orgs() {
var _a;
return ((_a = this._orgs) !== null && _a !== void 0 ? _a : (this._orgs = new Client_6.Orgs(this.options)));
return ((_a = this._orgs) !== null && _a !== void 0 ? _a : (this._orgs = new Client_6.Orgs(this._options)));
}
get users() {
var _a;
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_7.Users(this.options)));
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_7.Users(this._options)));
}
get feedbacks() {
var _a;
return ((_a = this._feedbacks) !== null && _a !== void 0 ? _a : (this._feedbacks = new Client_8.Feedbacks(this._options)));
}
}
exports.PromptonApiClient = PromptonApiClient;
Loading
Loading