Skip to content

Commit

Permalink
Merge branch 'feat/mistral-guardrail' of github.com:b4s36t4/Rubeus in…
Browse files Browse the repository at this point in the history
…to feat/mistral-guardrail
  • Loading branch information
b4s36t4 committed Dec 17, 2024
2 parents 8a1e01d + b19d7c5 commit 88930e0
Show file tree
Hide file tree
Showing 22 changed files with 529 additions and 1,304 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/link-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Check Markdown links

on:
push:
paths:
- '**/*.md' # Only run when markdown files change
pull_request:
branches:
- main
schedule:
- cron: '0 0 * * 0' # Run weekly on Sundays
workflow_dispatch: # Allows manual triggering

jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Link Checker
uses: lycheeverse/lychee-action@v1.8.0
with:
args: --verbose --no-progress --fail './**/*.md'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Issue If Failed
if: failure()
uses: actions/github-script@v6
with:
script: |
const title = '🔗 Broken links found in documentation';
const body = 'The link checker found broken links in the documentation. Please check the [workflow run](${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}) for details.';
const existingIssues = await github.rest.issues.listForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
labels: 'documentation,broken-links',
});
const issueExists = existingIssues.data.some(issue => issue.title === title);
if (!issueExists) {
await github.rest.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
title: title,
body: body,
labels: ['documentation', 'broken-links']
});
}
187 changes: 103 additions & 84 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@portkey-ai/gateway",
"version": "1.8.1",
"version": "1.8.2",
"description": "A fast AI gateway by Portkey",
"repository": {
"type": "git",
Expand Down
2 changes: 2 additions & 0 deletions src/globals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export const UPSTAGE: string = 'upstage';
export const LAMBDA: string = 'lambda';
export const DASHSCOPE: string = 'dashscope';
export const X_AI: string = 'x-ai';
export const SAGEMAKER: string = 'sagemaker';

export const VALID_PROVIDERS = [
ANTHROPIC,
Expand Down Expand Up @@ -123,6 +124,7 @@ export const VALID_PROVIDERS = [
LAMBDA,
DASHSCOPE,
X_AI,
SAGEMAKER,
];

export const CONTENT_TYPES = {
Expand Down
101 changes: 0 additions & 101 deletions src/handlers/chatCompleteHandler.ts

This file was deleted.

89 changes: 0 additions & 89 deletions src/handlers/completeHandler.ts

This file was deleted.

82 changes: 0 additions & 82 deletions src/handlers/embedHandler.ts

This file was deleted.

Loading

0 comments on commit 88930e0

Please sign in to comment.