You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-2Lines changed: 20 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,25 @@ Start with a manuscript repo [forked from Manubot rootstock](https://github.com/
40
40
1. If you haven't already, follow the directions above to create an account and get an API key for your chosen model provider.
41
41
1. In your fork's "⚙️ Settings" tab, make a new Actions repository secret with the name `PROVIDER_API_KEY` and paste in your API key as the secret.
42
42
43
+
If you prefer to select less options when running the workflow, you can optionally set up default values for the model provider and model at either the repo or organization level.
44
+
45
+
In your fork's "⚙️ Settings" tab, you can optionally create the folllowing Actions repository variables:
46
+
-`AI_EDITOR_MODEL_PROVIDER`: Either "openai" or "anthropic"; sets this as the default if "(repo default)" was selected in the workflow parameters.
47
+
If this is unspecified and "(repo default)" is selected, the workflow will throw an error.
48
+
-`AI_EDITOR_LANGUAGE_MODEL`: For the given provider, what model to use if the "model" field in the workflow parameters was left empty.
49
+
If this is unspecified, Manubot AI Editor will select the default model for your chosen provider.
50
+
51
+
### Multiple Providers
52
+
53
+
In case you want to use several providers in the same repo, you'll have to register an API key for each provider you intend to use.
54
+
Like `PROVIDER_API_KEY`, these keys are also registered as GitHub secrets, and can be specified at either the repository or organizational level.
55
+
56
+
We currently support the following secrets, with more to follow as we integrate more providers:
57
+
-`OPENAI_API_KEY`: the API key for the "openai" provider
58
+
-`ANTHROPIC_API_KEY`: the API key for the "anthropic" provider
59
+
60
+
See [the API key variables docs](https://github.com/manubot/manubot-ai-editor/blob/main/docs/env-vars.md#provider-api-key-configuration) for more information.
61
+
43
62
### Configuring prompts
44
63
45
64
In order to revise your manuscript, prompts must be provided to the AI model.
@@ -140,8 +159,7 @@ specific encodings, you can specify the input encoding with the
140
159
`AI_EDITOR_SRC_ENCODING` and the output encoding with the
141
160
`AI_EDITOR_DST_ENCODING` environment variables.
142
161
143
-
See
144
-
[these variables' help docs](https://github.com/manubot/manubot-ai-editor/blob/main/docs/env-vars.md#encodings)
162
+
See[these variables' help docs](https://github.com/manubot/manubot-ai-editor/blob/main/docs/env-vars.md#encodings)
145
163
for more information.
146
164
147
165
Also, see [Python 3 Docs: Standard Encodings](https://docs.python.org/3/library/codecs.html#standard-encodings) for
0 commit comments