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

Query 🤗TGI /info endpoint to get model name and context window #755

Merged
merged 3 commits into from
Jan 16, 2024

Conversation

simon376
Copy link
Contributor

@simon376 simon376 commented Jan 16, 2024

Similar to #609 and #502
The Hugging Face Text Generation Inference Server exposes a /info endpoint (see here) which gives us the model name and the context size, allowing for automatic population of these parameters.

code was adapted from the Ollama /api/show implementation here

Copy link

netlify bot commented Jan 16, 2024

Deploy Preview for continuedev canceled.

Name Link
🔨 Latest commit 85a17f4
🔍 Latest deploy log https://app.netlify.com/sites/continuedev/deploys/65a68c51043ff10008900451

@sestinj
Copy link
Contributor

sestinj commented Jan 16, 2024

love this, nice work!

@sestinj sestinj merged commit 0c77746 into continuedev:main Jan 16, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants