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: docs/docs/04-alternative-model-providers.md
+11-8
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,5 @@
1
1
# Alternative Model Providers
2
2
3
-
4
3
## Usage
5
4
6
5
GPTScript can be used against alternative models that expose an OpenAI compatible API or have a provider shim available.
@@ -16,24 +15,29 @@ Say hello world
16
15
To use a model that requires a provider shim:
17
16
18
17
```gptscript
19
-
model: claude-3-haiku-20240307 from github.com/gptscript-ai/anthropic-provider
18
+
model: claude-3-haiku-20240307 from github.com/gptscript-ai/claude3-anthropic-provider
20
19
21
20
Say hello world
22
21
```
23
22
24
23
### Authentication
25
24
26
-
For OpenAI compatible providers, GPTScript will look for an API key to be configured with the prefix `GPTSCRIPT_PROVIDER_`, the base domain converted to environment variable format, and a suffix of `_API_KEY`.
27
-
As an example if you are using `mistral-large-latest from https://api.mistral.ai/v1`, the environment variable would be `GPTSCRIPT_PROVIDER_API_MISTRAL_AI_API_KEY`
25
+
For OpenAI compatible providers, GPTScript will look for an API key to be configured with the
26
+
prefix `GPTSCRIPT_PROVIDER_`, the base domain converted to environment variable format, and a suffix of `_API_KEY`.
27
+
As an example if you are using `mistral-large-latest from https://api.mistral.ai/v1`, the environment variable would
28
+
be `GPTSCRIPT_PROVIDER_API_MISTRAL_AI_API_KEY`
28
29
29
-
Each provider shim has different requirements for authentication. Please check the readme for the provider you are trying to use.
30
+
Each provider shim has different requirements for authentication. Please check the readme for the provider you are
0 commit comments