-
-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
Feature/Prompt Fetch from Langsmith Hub #1319
Conversation
…o show the detailed prompt
# Conflicts: # packages/server/src/index.ts
packages/server/src/index.ts
Outdated
headers['x-api-key'] = decryptedCredentialData.langsmithApiKey | ||
|
||
const tags = req.body.tags ? `tags=${req.body.tags}` : '' | ||
const url = `https://web.hub.langchain.com/repos/?${tags}offset=0&limit=20&has_commits=true&sort_field=num_likes&sort_direction=desc&is_archived=false` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need offset and limit here? on the UI we dont have pagination right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed for now, fixed and pushed changes
} | ||
} | ||
setSelectedPrompt(prompt) | ||
await new Promise((resolve) => setTimeout(resolve, 500)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need a setTimeout here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed, fixed and pushed changes
Feature/Prompt Fetch from Langsmith Hub
No description provided.