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

Use chat completions on prompt agent endpoint #1239

Merged
merged 1 commit into from
Aug 31, 2024

Conversation

Josh-XT
Copy link
Owner

@Josh-XT Josh-XT commented Aug 31, 2024

Use chat completions on prompt agent endpoint

  • Enables the ability to upload files when using the prompt_agent function in the SDK by adding files to prompt args, which should be in the following format:
files = [
  {
    "file_name": "filename.pdf",
    "file_content": f"data:application/pdf;base64,{pdf_base64}"
  }
]

@Josh-XT Josh-XT marked this pull request as ready for review August 31, 2024 14:25
@Josh-XT Josh-XT merged commit 79e6436 into main Aug 31, 2024
7 checks passed
@Josh-XT Josh-XT deleted the Use-chat-completions-on-prompt-agent-endpoint branch August 31, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant