Skip to content

docs: add contributing guide #65

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

Merged
merged 6 commits into from
May 26, 2025

Conversation

ImBIOS
Copy link
Contributor

@ImBIOS ImBIOS commented May 22, 2025

  • Created a comprehensive CONTRIBUTING.md file to guide new contributors on setup, development workflow, testing, and pull request processes.
  • Included prerequisites, repository setup instructions, code style guidelines, and testing procedures.
  • Documented the process for adding new features and writing tests to ensure consistency and quality in contributions.

ImBIOS added 4 commits May 21, 2025 18:38
- Updated README.md to include usage accounting use cases and examples.
- Enhanced OpenRouterChatLanguageModel to support usage accounting settings and metadata extraction.
- Implemented detailed usage information tracking in responses.
- Added tests for usage accounting functionality, ensuring correct metadata inclusion based on settings.

Tested:
- Verified that usage accounting data is included in responses when enabled.
- Confirmed that provider-specific metadata is omitted when usage accounting is disabled.
- Moved `OpenRouterSharedSettings` type definition to the correct location in `src/types.ts`.
- Added `extraBody` property to `OpenRouterSharedSettings`.
- Marked `includeReasoning` as deprecated, suggesting to use `reasoning` instead.

Tested:
- No functional changes, but type definitions are now correctly structured.
- Added support for OpenRouter usage accounting feature, enabling tracking of token usage details in API responses.
- Updated schema to accommodate the new usage accounting response format.
- Documented changes in CHANGELOG.md.

Tested:
- Verified that usage accounting data is correctly included in both streaming and non-streaming API responses.
- Created a comprehensive CONTRIBUTING.md file to guide new contributors on setup, development workflow, testing, and pull request processes.
- Included prerequisites, repository setup instructions, code style guidelines, and testing procedures.
- Documented the process for adding new features and writing tests to ensure consistency and quality in contributions.
@ImBIOS
Copy link
Contributor Author

ImBIOS commented May 22, 2025

Oh, I forgot to use main as the base branch, wait, lemme force push.

@ImBIOS ImBIOS changed the title Docs/add-contributing-guide docs: add contributing guide May 22, 2025
Copy link
Contributor

@louisgv louisgv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@louisgv louisgv merged commit 99df9c2 into OpenRouterTeam:main May 26, 2025
3 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.

2 participants