@gsa-tts/graymatter-ui 1.0.3 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gsa-tts/graymatter-ui",
3
- "version": "1.0.3",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -58,14 +58,7 @@ To reach chat completions the documented endpoint is `<base url>/api/v1/chat/com
58
58
  * **model**: The model ID (e.g: gemini-2.0-flash, claude_3_haiku)
59
59
  * **messages**: An array of of message items consisting of User message, Image Content, Document Content, Assistant Message
60
60
  * **max_tokens**: Maximum response length (optional)
61
- * **temperature**: Response creativity (0.0-2.0, optional)
62
-
63
- | **Models** | **Range** | **Default value** |
64
- | :------- | :------: | -------: |
65
- | Google models | 0.0 - 2.0 | 1.0 |
66
- | Anthropic models | 0.0 - 1.0 | 0.5 |
67
- | Meta models | 0.0 - 1.0 | 0.5 |
68
-
61
+ * **temperature**: Response creativity (0.0-1.0, optional)
69
62
  * **top_p**: An alternative to sampling with temperature, called nucleus sampling (optional)
70
63
  * **stream**: a boolean indicating whether to send partials responses as available (optional)
71
64
 
@@ -14,25 +14,29 @@ Our API has resource-oriented URLs, accepts JSON request bodies, returns JSON re
14
14
 
15
15
  USAi API is organized around [REST](http://en.wikipedia.org/wiki/Representational_State_Transfer) and provides access to the large language models (LLMs):
16
16
 
17
- **Google AI models**
18
- - [Gemini 2.5 Flash](https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash)
19
- - [Gemini 2.5 Pro](https://ai.google.dev/gemini-api/docs/models#gemini-2.5-pro)
20
-
21
- **Anthropic models**
22
- - [Claude Haiku 3.5](https://docs.claude.com/en/docs/overview)
23
- - [Claude Sonnet 4.5](https://docs.claude.com/en/docs/overview)
24
- - [Claude Opus 4.5](https://docs.claude.com/en/docs/overview)
25
-
26
- **Meta models**
27
- - [Llama 3.2 11B](https://www.llama.com/docs/model-cards-and-prompt-formats/llama3_2/)
28
- - [Llama 4 Maverick](https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/)
29
-
30
- **OpenAI models**
31
- - [GPT 5.2](https://developers.openai.com/api/docs/models/gpt-5.2)
32
- - [GPT 5.4](https://developers.openai.com/api/docs/models/gpt-5.4)
33
-
34
- **xAI models**
35
- - [Grok 4](https://docs.x.ai/developers/models/grok-4.20)
17
+ **[Google AI models](https://ai.google.dev/gemini-api/docs/)**
18
+ - Gemini 2.5 Flash
19
+ - Gemini 2.5 Pro
20
+
21
+ **[Anthropic models](https://docs.claude.com/en/docs/overview)**
22
+ - Claude Haiku 3.5
23
+ - Claude Haiku 4.5
24
+ - Claude Sonnet 4.5
25
+ - Claude Sonnet 4.6
26
+ - Claude Opus 4.5
27
+ - Claude Opus 4.7
28
+ - Claude Opus 4.8
29
+
30
+ **[Meta models](https://www.llama.com/docs/model-cards-and-prompt-formats/)**
31
+ - Llama 4 Maverick
32
+
33
+ **[OpenAI models](https://developers.openai.com/api/docs/models/)**
34
+ - GPT 5.2
35
+ - GPT 5.4
36
+ - GPT 5.5
37
+
38
+ **[xAI models](https://docs.x.ai/developers/models/)**
39
+ - Grok 4
36
40
 
37
41
  The interface is modeled after the [OpenAI Chat Completion API](https://platform.openai.com/docs/guides/text?api-mode=responses). We will continue to add more models over time; we may also remove models if they are found to not meet our standards. You will be notified if a model is removed.
38
42
 
@@ -54,7 +58,12 @@ All API requests require an API key. Upon authentication, your agency-specific i
54
58
 
55
59
  #### Rate limitations
56
60
 
57
- We currently have a rate limit of 3 calls / second / API key. If you hit a rate limit, you should expect a 429 error code. If you need additional capacity, please contact us at [support@usai.gov](mailto:support@usai.gov). We can work with our infrastructure providers to secure higher model limits.
61
+ We currently have the following rate limits:
62
+ - Models – 3 calls / second / API key
63
+ - Chat completions – 3 calls / second / API key
64
+ - Embeddings – 100 calls / second / API key
65
+
66
+ If you hit a rate limit, you should expect a 429 error code. If you need additional capacity, please contact us at [partnerships@usai.gov](mailto:partnerships@usai.gov). We can work with our infrastructure providers to secure higher model limits.
58
67
 
59
68
  #### Feature limitations
60
69
 
@@ -4,7 +4,7 @@ description: ''
4
4
  sortOrder: 30
5
5
  ---
6
6
 
7
- You may encounter issues while working with the USAi API, as it is under active development. We may not be able to fix all issues immediately, but will add them to our backlog for future releases. If you have any questions, hit rate limits, or otherwise need assistance, please contact us at [support@usai.gov](mailto:support@usai.gov).
7
+ If you have any questions, hit rate limits, or otherwise need assistance, please contact us at [support@usai.gov](mailto:support@usai.gov).
8
8
 
9
9
 
10
10
 
@@ -27,13 +27,19 @@ const {
27
27
 
28
28
  // Read at build time for static output; prefer PUBLIC_* for safe exposure
29
29
  const chatUrl =
30
- import.meta.env.PUBLIC_CHAT_URL || process.env.CHAT_URL || undefined;
30
+ import.meta.env.PUBLIC_CHAT_URL || process.env.PUBLIC_CHAT_URL || undefined;
31
31
  const consoleUrl =
32
- import.meta.env.PUBLIC_CONSOLE_URL || process.env.CONSOLE_URL || undefined;
32
+ import.meta.env.PUBLIC_CONSOLE_URL ||
33
+ process.env.PUBLIC_CONSOLE_URL ||
34
+ undefined;
33
35
  const apiDocsUrl =
34
- import.meta.env.PUBLIC_API_DOCS_URL || process.env.API_DOCS_URL || undefined;
36
+ import.meta.env.PUBLIC_API_DOCS_URL ||
37
+ process.env.PUBLIC_API_DOCS_URL ||
38
+ undefined;
35
39
  const discoverUrl =
36
- import.meta.env.PUBLIC_DISCOVER_URL || process.env.DISCOVER_URL || undefined;
40
+ import.meta.env.PUBLIC_DISCOVER_URL ||
41
+ process.env.PUBLIC_DISCOVER_URL ||
42
+ undefined;
37
43
 
38
44
  const chat = chatUrl || '#';
39
45
  const consoleApp = consoleUrl || '#';