Skip to content

Commit

Permalink
Merge pull request #63 from 0xPlaygrounds/devops/ci-fix
Browse files Browse the repository at this point in the history
devops: Add cargo check for all features + doc check
  • Loading branch information
cvauclair authored Oct 17, 2024
2 parents 010c53d + dc248ed commit 093c434
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
25 changes: 24 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ jobs:

- name: Run clippy action
uses: clechasseur/rs-clippy-check@v3
with:
args: --all-features

test:
name: stable / test
Expand All @@ -79,4 +81,25 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: nextest
args: run --all-features
args: run --all-features

doc:
name: stable / doc
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Rust stable
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rust-docs

# Required to compile rig-lancedb
- name: Install Protoc
uses: arduino/setup-protoc@v3

- name: Run cargo doc
run: cargo doc --no-deps --all-features
env:
RUSTDOCFLAGS: -D warnings
4 changes: 2 additions & 2 deletions rig-core/src/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,14 +439,14 @@ impl<M: CompletionModel> CompletionRequestBuilder<M> {
}

/// Sets the max tokens for the completion request.
/// Only required for: [ Anthropic ]
/// Note: This is required if using Anthropic
pub fn max_tokens(mut self, max_tokens: u64) -> Self {
self.max_tokens = Some(max_tokens);
self
}

/// Sets the max tokens for the completion request.
/// Only required for: [ Anthropic ]
/// Note: This is required if using Anthropic
pub fn max_tokens_opt(mut self, max_tokens: Option<u64>) -> Self {
self.max_tokens = max_tokens;
self
Expand Down
2 changes: 1 addition & 1 deletion rig-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
//! Rig provides a common interface for working with vector stores and indexes. Specifically, the library
//! provides the [VectorStore](crate::vector_store::VectorStore) and [VectorStoreIndex](crate::vector_store::VectorStoreIndex)
//! traits, which can be implemented to define vector stores and indices respectively.
//! Those can then be used as the knowledgebase for a [RagAgent](crate::rag::RagAgent), or
//! Those can then be used as the knowledgebase for a RAG enabled [Agent](crate::agent::Agent), or
//! as a source of context documents in a custom architecture that use multiple LLMs or agents.
//!
//! # Integrations
Expand Down

0 comments on commit 093c434

Please sign in to comment.