Improves a Prompt

Enhances the given prompt.

Input

Revise and optimize the clarity and quality of a provided prompt. This task focuses on refining the text to enhance its comprehensibility and compatibility with AI tools.

[1.0.0]:
First release
VersionAI ModelCreatedLink
1.0.0gpt_3.528.03.2023

API

The REST API allows you to call the tool with the same costs as when running the tool. Please generate an Personal access token before using the REST API.

Parameters

  • prompt_to_improve (Prompt to improve): A prompt is provided that should be improved by the task
  • Call the REST API by cURL
    curl -v -H "Authorization: Bearer PERSONAL_ACCESS_TOKEN" https://api.anysolve.ai/rest/v1/improve-prompt/1.0.0?prompt_to_improve=Explain%20me%20the%20following%20code%3A%20%3Ccode%3E
  • Install the package with pip
    python3 -m pip install anysolve
  • Run in python3
    import os
    from anysolve import AnySolve
    anysolve_token = os.environ.get('ANYSOLVE_PERSONAL_ACCESS_TOKEN') # Resolve your personal access token here
    client = AnySolve(anysolve_token)
    res = client.run('improve-prompt','1.0.0', {'prompt_to_improve': 'Explain me the following code: <code>'})
    print(res)
  • Coming soon: Within AnySolve ChatComplete prompts you can use the following command to execute the task:
    /run('improve-prompt','1.0.0', prompt_to_improve='Explain me the following code: <code>')