Skip to content

Commit 47ee394

Browse files
committed
Run formatter and generate docs
1 parent b955946 commit 47ee394

File tree

5 files changed

+7
-183
lines changed

5 files changed

+7
-183
lines changed

docs-devsite/_toc.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,6 @@ toc:
198198
path: /docs/reference/js/ai.startchatparams.md
199199
- title: StringSchema
200200
path: /docs/reference/js/ai.stringschema.md
201-
- title: TemplateChatSession
202-
path: /docs/reference/js/ai.templatechatsession.md
203201
- title: TemplateGenerativeModel
204202
path: /docs/reference/js/ai.templategenerativemodel.md
205203
- title: TemplateImagenModel

docs-devsite/ai.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ The Firebase AI Web SDK.
4949
| [ObjectSchema](./ai.objectschema.md#objectschema_class) | Schema class for "object" types. The <code>properties</code> param must be a map of <code>Schema</code> objects. |
5050
| [Schema](./ai.schema.md#schema_class) | Parent class encompassing all Schema types, with static methods that allow building specific Schema types. This class can be converted with <code>JSON.stringify()</code> into a JSON string accepted by Vertex AI REST endpoints. (This string conversion is automatically done when calling SDK methods.) |
5151
| [StringSchema](./ai.stringschema.md#stringschema_class) | Schema class for "string" types. Can be used with or without enum values. |
52-
| [TemplateChatSession](./ai.templatechatsession.md#templatechatsession_class) | <b><i>(Public Preview)</i></b> A chat session that enables sending chat messages and stores the history of sent and received messages so far.<!-- -->This session is for multi-turn chats using a server-side template. It should be instantiated with [TemplateGenerativeModel.startChat()](./ai.templategenerativemodel.md#templategenerativemodelstartchat)<!-- -->. |
5352
| [TemplateGenerativeModel](./ai.templategenerativemodel.md#templategenerativemodel_class) | <b><i>(Public Preview)</i></b> [GenerativeModel](./ai.generativemodel.md#generativemodel_class) APIs that execute on a server-side template.<!-- -->This class should only be instantiated with [getTemplateGenerativeModel()](./ai.md#gettemplategenerativemodel_9476bbc)<!-- -->. |
5453
| [TemplateImagenModel](./ai.templateimagenmodel.md#templateimagenmodel_class) | <b><i>(Public Preview)</i></b> Class for Imagen model APIs that execute on a server-side template.<!-- -->This class should only be instantiated with [getTemplateImagenModel()](./ai.md#gettemplateimagenmodel_9476bbc)<!-- -->. |
5554
| [VertexAIBackend](./ai.vertexaibackend.md#vertexaibackend_class) | Configuration class for the Vertex AI Gemini API.<!-- -->Use this with [AIOptions](./ai.aioptions.md#aioptions_interface) when initializing the AI service via [getAI()](./ai.md#getai_a94a413) to specify the Vertex AI Gemini API as the backend. |

docs-devsite/ai.templatechatsession.md

Lines changed: 0 additions & 154 deletions
This file was deleted.

docs-devsite/ai.templategenerativemodel.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ export declare class TemplateGenerativeModel
4141
| --- | --- | --- |
4242
| [generateContent(templateId, templateVariables)](./ai.templategenerativemodel.md#templategenerativemodelgeneratecontent) | | <b><i>(Public Preview)</i></b> Makes a single non-streaming call to the model and returns an object containing a single [GenerateContentResponse](./ai.generatecontentresponse.md#generatecontentresponse_interface)<!-- -->. |
4343
| [generateContentStream(templateId, templateVariables)](./ai.templategenerativemodel.md#templategenerativemodelgeneratecontentstream) | | <b><i>(Public Preview)</i></b> Makes a single streaming call to the model and returns an object containing an iterable stream that iterates over all chunks in the streaming response as well as a promise that returns the final aggregated response. |
44-
| [startChat(templateId, history)](./ai.templategenerativemodel.md#templategenerativemodelstartchat) | | <b><i>(Public Preview)</i></b> Gets a new [TemplateChatSession](./ai.templatechatsession.md#templatechatsession_class) instance which can be used for multi-turn chats. |
4544

4645
## TemplateGenerativeModel.(constructor)
4746

@@ -124,27 +123,3 @@ generateContentStream(templateId: string, templateVariables: object): Promise<Ge
124123

125124
Promise&lt;[GenerateContentStreamResult](./ai.generatecontentstreamresult.md#generatecontentstreamresult_interface)<!-- -->&gt;
126125

127-
## TemplateGenerativeModel.startChat()
128-
129-
> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
130-
>
131-
132-
Gets a new [TemplateChatSession](./ai.templatechatsession.md#templatechatsession_class) instance which can be used for multi-turn chats.
133-
134-
<b>Signature:</b>
135-
136-
```typescript
137-
startChat(templateId: string, history?: Content[]): TemplateChatSession;
138-
```
139-
140-
#### Parameters
141-
142-
| Parameter | Type | Description |
143-
| --- | --- | --- |
144-
| templateId | string | The ID of the server-side template to execute. |
145-
| history | [Content](./ai.content.md#content_interface)<!-- -->\[\] | An array of [Content](./ai.content.md#content_interface) objects to initialize the chat history with. |
146-
147-
<b>Returns:</b>
148-
149-
[TemplateChatSession](./ai.templatechatsession.md#templatechatsession_class)
150-

packages/ai/src/requests/request.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ import { expect, use } from 'chai';
1919
import { match, restore, stub } from 'sinon';
2020
import sinonChai from 'sinon-chai';
2121
import chaiAsPromised from 'chai-as-promised';
22-
import { RequestURL, ServerPromptTemplateTask, Task, getHeaders, makeRequest } from './request';
22+
import {
23+
RequestURL,
24+
ServerPromptTemplateTask,
25+
Task,
26+
getHeaders,
27+
makeRequest
28+
} from './request';
2329
import { ApiSettings } from '../types/internal';
2430
import { DEFAULT_API_VERSION } from '../constants';
2531
import { AIErrorCode } from '../types';

0 commit comments

Comments
 (0)