Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Llm inputs - Add openai legacy completions output format #489

Merged
merged 2 commits into from
Mar 6, 2024

Conversation

nv-braf
Copy link
Contributor

@nv-braf nv-braf commented Mar 6, 2024

Created a new output format: OPENAI_COMPLETIONS

Here is an example json output:

{
  "data": [
    {
      "payload": [
        {
          "prompt": [
            "You will be given a definition of a task first, then some input of the task.\nThis task is about using the specified sentence and converting the sentence to Resource Description Framework (RDF) triplets of the form (subject, predicate object). The RDF triplets generated must be such that the triplets accurately capture the structure and semantics of the input sentence. The input is a sentence and the output is a list of triplets of the form [subject, predicate, object] that capture the relationships present in the sentence. When a sentence has more than 1 RDF triplet possible, the output must contain all of them.\n\nAFC Ajax (amateurs)'s ground is Sportpark De Toekomst where Ajax Youth Academy also play.\nOutput:"
          ],
          "stream": [
            true
          ]
        }
    ]
}

@nv-braf nv-braf requested review from debermudez and tgerdesnv March 6, 2024 18:40
@nv-braf nv-braf force-pushed the llm-inputs-legacy-completions branch from 1d35b33 to 9c96664 Compare March 6, 2024 23:12
@nv-braf nv-braf merged commit 6225a3f into feature-genai-pa Mar 6, 2024
3 checks passed
@nv-braf nv-braf deleted the llm-inputs-legacy-completions branch March 6, 2024 23:15
debermudez pushed a commit that referenced this pull request Mar 12, 2024
* Adding openai completions as an endpoint

* Fixing merge conflicts
debermudez pushed a commit that referenced this pull request Mar 13, 2024
* Adding openai completions as an endpoint

* Fixing merge conflicts
mc-nv pushed a commit that referenced this pull request Mar 13, 2024
* Adding openai completions as an endpoint

* Fixing merge conflicts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants