Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update API Reference model_id from DevDocs #2169

Merged
merged 3 commits into from
Mar 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'dev' into devdocs_update_to_modelid
  • Loading branch information
henryh0x1 committed Mar 2, 2024
commit 9cd245418a65f3185d71db0d656f90f1a8bb0501
28 changes: 28 additions & 0 deletions docs/openapi/jan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 117,34 @@ paths:
curl -X 'GET' \
'http://localhost:1337/v1/models' \
-H 'accept: application/json'
- lang: JavaScript
source: |-
const response = await fetch('http://localhost:1337/v1/models', {
method: 'GET',
headers: {Accept: 'application/json'}
});
const data = await response.json();
- lang: Python
source: |-
import requests

url = 'http://localhost:1337/v1/models'
headers = {'Accept': 'application/json'}
response = requests.get(url, headers=headers)
data = response.json()
- lang: Node.js
source: |-
const fetch = require('node-fetch');

const url = 'http://localhost:1337/v1/models';
const options = {
method: 'GET',
headers: { Accept: 'application/json' }
};

fetch(url, options)
.then(res => res.json())
.then(json => console.log(json));
/models/download/{model_id}:
get:
operationId: downloadModel
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.