Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit84ea341

Browse files
Silas Marvingitbook-bot
Silas Marvin
authored andcommitted
GITBOOK-93: Quick Fixes
1 parent410129d commit84ea341

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

‎pgml-cms/docs/getting-started/connect-your-app.md‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ These SDKs are under rapid development to add new features and use cases, but we
1616

1717
{% tabs %}
1818
{% tab title="JavaScript" %}
19-
```
19+
```bash
2020
npm i pgml
2121
```
2222
{% endtab %}
@@ -32,13 +32,13 @@ pip install pgml
3232

3333
{% tabs %}
3434
{% tab title="JavaScript" %}
35-
```
35+
```javascript
3636
constpgml=require("pgml");
3737

38-
const main =async() => {
38+
constmain= ()=> {
3939
constclient=pgml.newOpenSourceAI();
4040
constresults=client.chat_completions_create(
41-
"mistralai/Mistral-7B-Instruct-v0.1",
41+
"HuggingFaceH4/zephyr-7b-beta",
4242
[
4343
{
4444
role:"system",
@@ -51,17 +51,18 @@ const main = async () => {
5151
],
5252
);
5353
console.log(results);
54+
}
5455
```
5556
{% endtab %}
5657

5758
{% tab title="Python" %}
58-
```
59+
```python
5960
import pgml
6061

6162
asyncdefmain():
6263
client= pgml.OpenSourceAI()
6364
results= client.chat_completions_create(
64-
"mistralai/Mistral-7B-Instruct-v0.1",
65+
"HuggingFaceH4/zephyr-7b-beta",
6566
[
6667
{
6768
"role":"system",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp