Skip to content

Commit d0cb294

Browse files
committed
Merge branch 'main' into ood
2 parents 713ebe4 + 6073f2b commit d0cb294

83 files changed

Lines changed: 237 additions & 665 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/code-quality.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v5
1919

2020
- name: Setup Node.js
21-
uses: actions/setup-node@v4
21+
uses: actions/setup-node@v5
2222
with:
2323
node-version: latest
2424

.github/workflows/deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@v5
1919

2020
- name: Install pnpm
2121
uses: pnpm/action-setup@v4

.github/workflows/links.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ jobs:
1313
name: Link checker
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1717

1818
- name: Install pnpm
1919
uses: pnpm/action-setup@v4
2020
with:
2121
version: latest
2222

23-
- uses: actions/setup-node@v4
23+
- uses: actions/setup-node@v5
2424
with:
2525
node-version: 22
2626

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
name: runner / remark-lint
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v5
2424

2525
- name: Install pnpm
2626
uses: pnpm/action-setup@v4

.github/workflows/preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@v5
2727

2828
- name: Install pnpm
2929
uses: pnpm/action-setup@v4

.github/workflows/spellcheck.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout Actions Repository
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
1818

1919
- name: Spell Check Repo
20-
uses: crate-ci/typos@v1.35.3
20+
uses: crate-ci/typos@v1.36.2
2121
with:
2222
files: docs/**/**/*.md docs/**/**/*.mdx

.github/workflows/update-lockfiles.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
pixi-update:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1717
- name: Set up pixi
18-
uses: prefix-dev/setup-pixi@v0.8.14
18+
uses: prefix-dev/setup-pixi@v0.9.0
1919
with:
2020
run-install: false
2121

docs/genai/01_getting_started/01_intro.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ Welcome to Pythia, the generative AI platform for research workflows. As part of
88
- [Access to externally hosted LLMs](../01_getting_started/02_llm_gateway.mdx)
99
- [HPC resources for fine tuning LLMs](../../hpc/08_ml_ai_hpc/04_llm_fine_tuning.md)
1010

11-
:::tip[Personal use]
11+
:::info[Personal use]
1212
If you want to access NYU provided LLMs for personal use, proceed to https://gemini.google.com/app with your NYU credentials.
1313
:::
1414

15+
:::tip[GenAI Library Guide]
16+
Please visit the NYU Library guide on GenAI tools to understand how you can responsibly and effectively harness these tools for academic research: https://guides.nyu.edu/ai-tools
17+
:::
18+
1519
For an overview of the capabilities afforded by the LLM gateway, proceed to the next section.

docs/genai/02_onboarding/02_setup.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
## Accessing your workspace
44
Login to Portkey at [`app.portkey.ai`](https://app.portkey.ai/login) with the `Single-sign-on` option using your NYU NetID. Once you're in, you'll be placed in the "Shared Workspace" by default. You can navigate to your workspace by selecting it from the workspace drop-down list from the top of the left sidebar.
55

6-
## Virtual Keys
7-
As workspace member you will be able to access virtual keys by clicking on the "Virtual Keys" item on the left sidebar in the "AI Gateway" section. You will have access to virtual keys added by the RTS team, but as an end-user, you will not have the ability to add them.
8-
96
## API Keys
107
The first task we recommend that you perform is to create a "User" API key for yourself. Click on the "API Keys" item on the left sidebar. Once you hit the create button you'd be able to choose the type (User/Service), optional items like config and metadata. In addition, you are free to choose as many or as few permissions you'd provide the API key.
118

@@ -17,4 +14,7 @@ Having a "User" API key is a pre-requisite for using the [prompt playground](htt
1714
The only difference between user and service keys is that the logs with user key will have the NetID of the user as part of the metadata while the services will not. We recommend service keys to be used when you're creating end user applications like chatbots and stick to user keys otherwise.
1815
:::
1916

17+
## ModelCatalog
18+
You can view the LLMs you have access to via the ModelCatalog item on the left sidebar. Once in the ModelCtalog panel, you'll be able to view a list of providers and models. Each provider facilitates access to one or more LLMs and has a budget limit that can be increased upon request.
19+
2020
You now have everything you need to send your first request to an LLM. The next section demonstrates an example.

docs/genai/02_onboarding/03_quickstart.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,18 @@ from portkey_ai import Portkey
2121

2222
portkey = Portkey(
2323
base_url="https://ai-gateway.apps.cloud.rt.nyu.edu/v1/",
24-
api_key="", # Replace with your Portkey API key
25-
virtual_key="", # Replace with your virtual key
24+
api_key="", # Replace with your API key!
2625
)
2726

2827
completion = portkey.chat.completions.create(
28+
model="@vertexai/gemini-2.5-flash", # Replace with a model available to you!
2929
messages=[
3030
{"role": "system", "content": "You are not a helpful assistant"},
31-
{"role": "user", "content": "Say this is a test"},
31+
{
32+
"role": "user",
33+
"content": "Complete the following sentence:The sun is shining and the sky is",
34+
},
3235
],
33-
model="", # Replace with the LLM model you'd like to use
3436
)
3537

3638
print(completion)

0 commit comments

Comments
 (0)