Skip to content

Conversation

@vmleon
Copy link
Collaborator

@vmleon vmleon commented Aug 2, 2024

@peppertech This is the summarization from plain text.

As usual there is code examples for all three scenarios on the React code. I put some snippets here as there are changes on the API. That is why I have bump the version for the Java backend.

Summary from file (PDF) POST /api/upload

const res = await fetch("/api/upload", {
      method: "POST",
      body: formData,
      headers: { conversationId: identity, modelId: "n/a" },
    });
    const responseData = await res.json();
    const { content, errorMessage } = responseData;

Summary from text POST /api/genai/summary

const res = await fetch("/api/genai/summary", {
      method: "POST",
      body: body,
      headers: {
        "Content-Type": "application/json",
        conversationId: identity,
        modelId: "n/a",
      },
    });
    const responseData = await res.json();
    const { content, errorMessage } = responseData;

This of changes:

  • add summary from text
  • add interaction to database for all scenarios
  • improve code
  • bump versions

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Aug 2, 2024
Copy link
Collaborator

@peppertech peppertech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks good to me.

@peppertech peppertech merged commit 3107aa5 into main Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants