Spaces:
Running
Running
Merge pull request #666 from jlowin/openai
Browse files
docs/integrations/openai.mdx
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
title: OpenAI
|
| 3 |
sidebarTitle: OpenAI
|
| 4 |
description: Integrate FastMCP servers with the OpenAI API
|
| 5 |
-
icon: "); -webkit-mask-image: url(
|
| 6 |
---
|
| 7 |
|
| 8 |
import { VersionBadge } from "/snippets/version-badge.mdx"
|
|
@@ -139,7 +139,7 @@ auth = BearerAuthProvider(
|
|
| 139 |
mcp = FastMCP(name="Dice Roller", auth=auth)
|
| 140 |
```
|
| 141 |
|
| 142 |
-
Here is a complete example that you can copy/paste. For simplicity, it will print the token to the console
|
| 143 |
|
| 144 |
```python server.py [expandable]
|
| 145 |
from fastmcp import FastMCP
|
|
|
|
| 2 |
title: OpenAI
|
| 3 |
sidebarTitle: OpenAI
|
| 4 |
description: Integrate FastMCP servers with the OpenAI API
|
| 5 |
+
icon: "); -webkit-mask-image: url(https://upload.wikimedia.org/wikipedia/commons/6/66/OpenAI_logo_2025_%28symbol%29.svg);/*"
|
| 6 |
---
|
| 7 |
|
| 8 |
import { VersionBadge } from "/snippets/version-badge.mdx"
|
|
|
|
| 139 |
mcp = FastMCP(name="Dice Roller", auth=auth)
|
| 140 |
```
|
| 141 |
|
| 142 |
+
Here is a complete example that you can copy/paste. For simplicity and the purposes of this example only, it will print the token to the console. **Do NOT do this in production!**
|
| 143 |
|
| 144 |
```python server.py [expandable]
|
| 145 |
from fastmcp import FastMCP
|