1.0.17 • Published 2 years ago

prompt-eng-server v1.0.17

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Prompt server

The server of the prompt client, saves data in a database for later use.

How to use:

The server uses a REST API with different routes:

  • GET requests -

    • /api/getPrompt - POST request, gets an hashed message and returns the prompt that matches that hash:

      • takes a payload of a hashed message - { hash }
      • returns the prompt that matches that hash
      • if a prompt doesn't exist returns an error message
  • POST requests -

    • /api/createPrompt - POST request, saves a new prompt to the database:

      • takes a payload of a hashed message, parameters (if there are any) and the usual OpenAI's createChatCompletion and createCompletion parameters - {hash, ...{OPENAI_PARAMS}}
      • returns the newly created prompt
      • if a prompt already exist returns an error message
  • PUT requests -

    • /api/updatePrompt - PUT request, updates a prompt with the same hash:

      • takes a payload of a hashed message, parameters (if there are any) and the usual OpenAI's createChatCompletion and createCompletion parameters - {hash, ...{OPENAI_PARAMS}}
      • returns the newly updated prompt
      • if a prompt with that hash doesnt exist returns an error message
1.0.17

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.8

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago