Skip to content

Commit

Permalink
Test commit
Browse files Browse the repository at this point in the history
  • Loading branch information
albertkimjunior committed Jun 25, 2024
1 parent 8704883 commit 0467aee
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
17 changes: 17 additions & 0 deletions docs/snippets/github-stars.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React, { useEffect, useState } from 'react';

export function GithubStars() {
const [stars, setStars] = useState(null);

useEffect(() => {
async function fetchStars() {
const response = await fetch('https://api.github.com/repos/AgentOps-AI/agentops');
const data = await response.json();
const stars = Math.ceil(data.stargazers_count / 1000) * 1000;
setStars(stars.toLocaleString());
}
fetchStars();
}, []);

return <p>{stars ? `${stars}th` : '2,000th'}</p>;
}
22 changes: 3 additions & 19 deletions docs/v1/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,8 @@
title: "Quickstart"
description: "Start using AgentOps with just 2 lines of code"
---
import SupportedModels from '/snippets/supported-models.mdx'
import { useEffect, useState } from 'react';

function GitHubStars() {
const [stars, setStars] = useState(null);

useEffect(() => {
async function fetchStars() {
const response = await fetch('https://api.github.com/repos/AgentOps-AI/agentops');
const data = await response.json();
const stars = Math.ceil(data.stargazers_count / 1000) * 1000;
setStars(stars.toLocaleString());
}
fetchStars();
}, []);

return stars ? `${stars}th` : '2,000th';
}
import { GithubStars } from '/snippets/github-stars'
import SupportedModels from '/snippets/supported-models.mdx'

<Steps>
<Step title="Install the AgentOps SDK">
Expand All @@ -31,7 +15,7 @@ function GitHubStars() {
poetry add agentops
```
</CodeGroup>
<Check>[Give us a star](https://github.com/AgentOps-AI/agentops) on GitHub while you're at it (you may be our 2,000th 😊)</Check>
<Check>[Give us a star](https://github.com/AgentOps-AI/agentops) on GitHub while you're at it (you may be our <GithubStars /> 😊)</Check>
</Step>
<Step title="Add 2 lines of code">
<CodeGroup>
Expand Down

0 comments on commit 0467aee

Please sign in to comment.