Skip to content

docs: [js] Add file input support for chat completion in orchestration service#410

Merged
davidkna-sap merged 10 commits intomainfrom
davidkna-sap_fileinpdoc
Mar 27, 2026
Merged

docs: [js] Add file input support for chat completion in orchestration service#410
davidkna-sap merged 10 commits intomainfrom
davidkna-sap_fileinpdoc

Conversation

@davidkna-sap
Copy link
Copy Markdown
Member

What Has Changed?

Explain what you are changing and why, if it isn't obvious from the diff.

Comment thread docs-js/orchestration/chat-completion.mdx Outdated
@davidkna-sap davidkna-sap requested a review from marikaner March 6, 2026 13:26
@davidkna-sap davidkna-sap force-pushed the davidkna-sap_fileinpdoc branch from 211bed8 to 5478181 Compare March 6, 2026 13:35
@davidkna-sap davidkna-sap marked this pull request as draft March 18, 2026 14:17
* origin/main:
  chore(deps-dev): bump @typescript-eslint/eslint-plugin (#416)
  chore(deps-dev): bump @typescript-eslint/parser from 8.57.0 to 8.57.1 (#415)
  chore: Updated deprecated model list (#414)
  [JS] Add API docs reference (#394)
  chore(deps-dev): bump @typescript-eslint/eslint-plugin (#412)
  chore: [JS] Fix resilience documentation across multiple modules (#405)
@davidkna-sap davidkna-sap marked this pull request as ready for review March 18, 2026 15:12
@davidkna-sap davidkna-sap added waiting for release Pull request should be merged once a new SDK release happened and removed don't merge waiting for release Pull request should be merged once a new SDK release happened labels Mar 19, 2026

:::

For file input, the [content block](pathname:///api/v2/types/orchestration_src.FileContent.html) should have `type: 'file'` and include a [`file`](pathname:///api/v2/types/orchestration_src.FileContent.html) object with a `file_data` property containing a URL.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If both anchors should point to the same location, I believe that a rephrasing would be great with only one link remaining.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Updated the first link.

Comment thread docs-js/orchestration/chat-completion.mdx Outdated
Comment on lines +721 to +726
:::note

Orchestration file input support may not match the file input capabilities of each individual model, as the orchestration service may only support a subset of file types for certain models.
Please always check if the specific file type you want to use is supported by the orchestration service for your chosen model.

:::
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[suggestion] Maybe we can add a link to the available orchestration services?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I haven't really seen documentation on the extent of support, but I have added the block to be a bit more clear.

Comment on lines +714 to +726
:::note

The `file` content type can only be used in messages with `role: 'user'`.
Attempting to use `file` in non-user messages will result in an error.

:::

:::note

Orchestration file input support may not match the file input capabilities of each individual model, as the orchestration service may only support a subset of file types for certain models.
Please always check if the specific file type you want to use is supported by the orchestration service for your chosen model.

:::
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[personal opinion] I would avoid having two notes placed one after the other.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I would like to avoid merging them, and the first matches the image input documentation. Do you have any ideas where the second note could fit?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe after this part or above the code snippet?
Data URLs must follow this format:

data:MIME_TYPE;base64,BASE64_ENCODED_FILE_CONTENT

Otherwise, I believe that it is fine this way as well.

Copy link
Copy Markdown
Contributor

@BrigittaK307 BrigittaK307 left a comment

Choose a reason for hiding this comment

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

Besides that small suggestion it LGTM.

@davidkna-sap davidkna-sap enabled auto-merge (squash) March 27, 2026 10:54
@davidkna-sap davidkna-sap merged commit 95a7795 into main Mar 27, 2026
7 checks passed
@davidkna-sap davidkna-sap deleted the davidkna-sap_fileinpdoc branch March 27, 2026 10:57
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.

3 participants