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/ai-server/chat.md
+36-1Lines changed: 36 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ This request will generate a response from the `llama3:8b` model using the `syst
27
27
28
28
Alternatively, you can call the same endpoint asynchronously by using the `/api/QueueOpenAiChatCompletion` endpoint. This will queue the request for processing and return a URL to check the status of the request and download the response when it's ready.
Unless your callback API is restricted to only accept requests from your AI Server, you should include a
75
+
unique Id like a `Guid` in the callback URL that can be validated against an initiating request to ensure
76
+
the callback can't be spoofed.
77
+
43
78
## Using the AI Server Request DTOs with other OpenAI compatible APIs
44
79
45
80
One advantage of using AI Server is that it provides a common set of request DTOs in 11 different languages that are compatible with OpenAI's API. This allows you to switch between OpenAI and AI Server without changing your client code.
Copy file name to clipboardExpand all lines: MyApp/_pages/ai-server/comfy-extension.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,5 +55,11 @@ The AI Server has pre-defined workflows to interact with your ComfyUI Agent inst
55
55
56
56
These workflows are found in the AI Server AppHost project under `workflows`. These are templated JSON versions of workflows you save in the ComfyUI web interface.
57
57
58
-
You can override these workflows by creating a new JSON file with the same name and path but in the `App_Data/overrides` folder. For example, to override the `text_to_image` workflow, you would create a file at `App_Data/overrides/text_to_image.json`.
59
-
This would override all calls that use text-to-image workflow sent to your ComfyUI Agent instance. You can also override just `flux-schnell` by creating a file at `App_Data/overrides/flux1/text_to_image.json`, and Stable Diffusion 3.5 at `App_Data/overrides/sd35/text_to_image.json`.
58
+
You can override these workflows by creating a new JSON file with the same name and path but in the `App_Data/overrides` folder.
59
+
60
+
E.g. to override the `text_to_image` workflow, you would create a file at `App_Data/overrides/text_to_image.json`
61
+
62
+
This would override all calls that use text-to-image workflow sent to your ComfyUI Agent instance.
63
+
64
+
You can also override just `flux-schnell` by creating a file at `App_Data/overrides/flux1/text_to_image.json`
65
+
and Stable Diffusion 3.5 at `App_Data/overrides/sd35/text_to_image.json`.
0 commit comments