Skip to content

Commit 4f3b843

Browse files
committed
docs openai
1 parent b2e8d3f commit 4f3b843

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docs/my-website/docs/provider_registration/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
title: "Integrate as a Model Provider"
33
---
44

5+
## Quick Start for OpenAI-Compatible Providers
6+
7+
If your API is OpenAI-compatible, you can add support by editing a single JSON file. See [Adding OpenAI-Compatible Providers](/docs/contributing/adding_openai_compatible_providers) for the simple approach.
8+
9+
---
10+
511
This guide focuses on how to setup the classes and configuration necessary to act as a chat provider.
612

713
Please see this guide first and look at the existing code in the codebase to understand how to act as a different provider, e.g. handling embeddings or image-generation.

docs/my-website/sidebars.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,11 @@ const sidebars = {
490490
id: "provider_registration/index",
491491
label: "Integrate as a Model Provider",
492492
},
493+
{
494+
type: "doc",
495+
id: "contributing/adding_openai_compatible_providers",
496+
label: "Add OpenAI-Compatible Provider (JSON)",
497+
},
493498
{
494499
type: "doc",
495500
id: "provider_registration/add_model_pricing",
@@ -814,6 +819,7 @@ const sidebars = {
814819
type: "category",
815820
label: "Adding Providers",
816821
items: [
822+
"contributing/adding_openai_compatible_providers",
817823
"adding_provider/directory_structure",
818824
"adding_provider/new_rerank_provider",
819825
]

0 commit comments

Comments
 (0)