Skip to content

Instantly share code, notes, and snippets.

@Tuff-Madman
Created June 8, 2025 12:28
Show Gist options
  • Save Tuff-Madman/424c271bfe08c8af68bff5530930e40d to your computer and use it in GitHub Desktop.
Save Tuff-Madman/424c271bfe08c8af68bff5530930e40d to your computer and use it in GitHub Desktop.
The application is simple console chatbot that allows user to ask questions and get answers.
1. Use OpenRouter API by passing base url and API key to Langchain's implementation
2. Use a free model from OpenRouter.
- Note: Free model IDs change. A search for openrouter.ai free avaialble curent models is required to confirm cprrect model id
3. Use OpenRouter API with provided credentials: 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
- API Key:
- API Host: https://openrouter.ai/api/v1
- Use Langchain for interacting with LLM
- just pass provided base url and key. DO NOT EXTEND LANGCHAIN'S CLASSES
4. Create and always use Python virtual environment
5. No fixed package versions required
6. Run the application, test it in a console and fix all issues if needed
7. Provide user instructions to run the application
## standarts for the github-publish.mdc
1. Ensure `.gitignore` is set up to exclude secrets and other generated files.
2. Initialize git and commit project files.
3. Set up a remote repository on GitHub—create (use the API with a PAT).
4. Add the remote: `git remote add origin <repo-url>`
5. Push changes: `git push -u origin master`
- Ensure that no Personal Access Token (PAT) is inadvertently exposed.
- Never store or share your PAT in code or repositories.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment