CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/next/components/openai/vendor-status-check.tsx
Views: 687
1
import {
2
LLMServiceName,
3
getLLMServiceStatusCheckMD,
4
} from "@cocalc/util/db-schema/llm-utils";
5
import { unreachable } from "@cocalc/util/misc";
6
import A from "components/misc/A";
7
8
export function LLMServiceStatusCheck({
9
service,
10
}: {
11
service: LLMServiceName;
12
}): JSX.Element {
13
switch (service) {
14
case "openai":
15
return (
16
<>
17
OpenAI <A href="https://status.openai.com/">status</A> and{" "}
18
<A href="https://downdetector.com/status/openai/">downdetector</A>.
19
</>
20
);
21
22
case "google":
23
return (
24
<>
25
Google <A href="https://status.cloud.google.com">status</A> and{" "}
26
<A href="https://downdetector.com/status/google-cloud">
27
downdetector
28
</A>
29
.
30
</>
31
);
32
33
case "ollama":
34
return (
35
<>
36
This Ollama based API endpoint does not have a status page. If you are
37
experiencing issues you have to check with the API service directly or
38
try again later.
39
</>
40
);
41
42
case "custom_openai":
43
return (
44
<>
45
This Custom OpenAI API endpoint does not have a status page. If you
46
are experiencing issues you have to check with the API service
47
directly or try again later.
48
</>
49
);
50
51
case "mistralai":
52
return (
53
<>
54
This Mistral based API endpoint does not have a status page. If you
55
are experiencing issues, use another model or try again later.
56
</>
57
);
58
59
case "anthropic":
60
return (
61
<>
62
Anthropic <A href="https://status.anthropic.com/">status</A>.
63
</>
64
);
65
66
case "user":
67
return <>{getLLMServiceStatusCheckMD("user")}</>;
68
69
default:
70
unreachable(service);
71
}
72
return <></>;
73
}
74
75