Completion (GPT and others)

This task completes a prompt by Completion with a generative transformer large language model. NOTE: This model completes your sentence, if you are looking to answer your prompt like ChatGPT does you should rather use the 'ChatComplete (GPT and others)' task.

Input

Execution Engine

This task completes a prompt by Completion with a generative transformer large language model.

[1.0.0]:
First release
VersionAI ModelCreatedLink
1.0.0davinci28.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 (Prompt): The prompt input
  • engine (Execution Engine): Defines the execution engine
  • Call the REST API by cURL
    curl -v -H "Authorization: Bearer PERSONAL_ACCESS_TOKEN" https://api.anysolve.ai/rest/v1/intern-gpt-completion/1.0.0?prompt=Q%3A%20Capital%20of%20Austria%20A%3AVienna%20Q%3ACapital%20of%20Germany%20A%3A&engine=davinci
  • 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('intern-gpt-completion','1.0.0', {'prompt': 'Q: Capital of Austria A:Vienna Q:Capital of Germany A:', 'engine': 'davinci'})
    print(res)
  • Coming soon: Within AnySolve ChatComplete prompts you can use the following command to execute the task:
    /run('intern-gpt-completion','1.0.0', prompt='Q: Capital of Austria A:Vienna Q:Capital of Germany A:', engine='davinci')