File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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" }'
You can’t perform that action at this time.
0 commit comments