You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MyApp/_pages/releases/v8_09.md
+13-5Lines changed: 13 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2107,8 +2107,8 @@ the same APIs with **both** Identity Auth and API Keys, enabling you to:
2107
2107
- Provide programmatic access via API Keys
2108
2108
- Maintain all the benefits of API Keys
2109
2109
2110
-
To achieve this, Users will need to have a valid API Key generated for them which would then need to be added to the `apikey`
2111
-
Claim in the `UserClaimsPrincipalFactory` to be included in their Identity Auth Cookie:
2110
+
To achieve this, users will need to have a valid API Key generated for them which would then need to be added
2111
+
to the `apikey`Claim in the `UserClaimsPrincipalFactory` to be included in their Identity Auth Cookie:
2112
2112
2113
2113
```csharp
2114
2114
// Program.cs
@@ -2161,9 +2161,9 @@ public class QueryOrders : QueryDb<Order> { }
2161
2161
2162
2162
## AI Chat
2163
2163
2164
-
We're excited to introduce **AI Chat** — a refreshingly simple solution for integrating AI into your applications by
2165
-
unlocking the full value of the OpenAI Chat API. Unlike most other OpenAI SDKs and Frameworks, all of AI Chat's features
2166
-
are centered around arguably the most important API in our time - OpenAI's simple [Chat Completion API](https://platform.openai.com/docs/api-reference/chat)
2164
+
We're excited to introduce **AI Chat** — a refreshingly simple solution for integrating AI into your applications
2165
+
by unlocking the full value of the OpenAI Chat API. Unlike most other OpenAI SDKs and Frameworks, all of AI Chat's
2166
+
features are centered around arguably the most important API in our time - OpenAI's simple [Chat Completion API](https://platform.openai.com/docs/api-reference/chat)
2167
2167
i.e. the primary API used to access Large Language Models (LLMs).
2168
2168
2169
2169
We've had several attempts at adding a valuable layer of functionality for harnessing AI into our Apps, including:
@@ -2261,6 +2261,14 @@ public class ConfigureAiChat : IHostingStartup
2261
2261
}
2262
2262
```
2263
2263
2264
+
#### Prerequisites:
2265
+
2266
+
As AI Chat protects its APIs and UI with Identity Auth or API Keys, you'll need to enable the [API Keys Feature](https://docs.servicestack.net/auth/apikeys) if you haven't already:
2267
+
2268
+
:::sh
2269
+
x mix apikeys
2270
+
:::
2271
+
2264
2272
## Simple, Not Simplistic
2265
2273
2266
2274
How simple is it to use? It's just as you'd expect, your App logic need only bind to a simple `IChatClient` interface
0 commit comments