Skip to content

Commit bce678d

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add a field for upgrading previous processor version when fine tuning
PiperOrigin-RevId: 882129422
1 parent 2ea3317 commit bce678d

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Generate API Index
2+
on: # yamllint disable-line rule:truthy
3+
push:
4+
branches: [master]
5+
workflow_dispatch:
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Setup .NET Core SDK
11+
uses: actions/setup-dotnet@v3
12+
- name: Checkout googleapis (this repository)
13+
uses: actions/checkout@v3
14+
with:
15+
path: googleapis
16+
- name: Checkout index generator
17+
uses: actions/checkout@v3
18+
with:
19+
repository: googleapis/googleapis-api-index-generator
20+
path: gen
21+
- name: Generate API index
22+
run: |
23+
gen/scripts/generate-schema.sh
24+
gen/scripts/generate-index.sh $PWD/googleapis
25+
cp gen/tmp/api-index-v1.json $PWD/googleapis
26+
- name: Create PR
27+
uses: googleapis/code-suggester@v5
28+
env:
29+
ACCESS_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
30+
with:
31+
command: pr
32+
upstream_owner: googleapis
33+
upstream_repo: googleapis
34+
title: 'chore: regenerate API index'
35+
description: 'chore: regenerate API index'
36+
message: 'chore: regenerate API index'
37+
primary: 'master'
38+
branch: api-index
39+
git_dir: 'googleapis/.'
40+
force: true
41+
fork: true

google/cloud/documentai/v1beta3/document_processor_service.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,6 +1118,14 @@ message TrainProcessorVersionRequest {
11181118
// values are between 0.1 and 10. If not provided, recommended learning rate
11191119
// will be used.
11201120
float learning_rate_multiplier = 3 [(google.api.field_behavior) = OPTIONAL];
1121+
1122+
// Optional. Resource name of a previously fine tuned version id to copy the
1123+
// overwritten configs from. The base_processor_version should be newer than
1124+
// the base processor version used to fine tune this provided processor
1125+
// version. Format:
1126+
// `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`.
1127+
string previous_fine_tuned_processor_version_name = 5
1128+
[(google.api.field_behavior) = OPTIONAL];
11211129
}
11221130

11231131
oneof processor_flags {

0 commit comments

Comments
 (0)