Skip to content

Commit a47c8cd

Browse files
committed
Fix incorrect modelId for openai-community/gpt2.
1 parent 8986183 commit a47c8cd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/model-api/docs/get-started.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ mode: 'wide'
9595
import Bytez from "bytez.js";
9696

9797
const sdk = new Bytez("BYTEZ_KEY");
98-
const modelId = "openai-community/gpt-2"
98+
const modelId = "openai-community/gpt2"
9999
const model = sdk.model(model_id)
100100

101101
const { error, output } = await model.run("Once upon a time")
@@ -108,15 +108,15 @@ mode: 'wide'
108108

109109
sdk = Bytez("BYTEZ_KEY")
110110

111-
model = sdk.model("openai-community/gpt-2")
111+
model = sdk.model("openai-community/gpt2")
112112

113113
result = model.run("Once upon a time")
114114

115115
print(result.output)
116116
```
117117

118118
```bash http
119-
curl -X POST "https://api.bytez.com/models/v2/openai-community/gpt-2" \
119+
curl -X POST "https://api.bytez.com/models/v2/openai-community/gpt2" \
120120
-H "Authorization: BYTEZ_KEY" \
121121
-H "Content-Type: application/json" \
122122
--data '{ "text": "Once upon a time" }'

0 commit comments

Comments
 (0)