Skip to content

Tags: francisfuzz/preview-sdk.js

Tags

v4.0.1

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: use `gpt-4o` as default model (copilot-extensions#63)

this aligns with other uses across github

v4.0.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: `create*Event` methods now return strings (copilot-extensions#59)

BREAKING CHANGE: All `create*Event` methods now return a string instead
of an object with a `.toString()` method.

Before:

```js
esponse.write(createTextEvent("Hello, world!").toString());
```

Now:

```js
esponse.write(createTextEvent("Hello, world!"));
```

v3.0.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat(prompt): `prompt.stream()`, `options.endpoint` (copilot-extensio…

…ns#57)

BREAKING CHANGE: `prompt()` is now throwing an error if the API responds
with an error status code

v2.6.1

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix(prompt): `parameters.model` is now a string and is optional. It d…

…efaults to `gpt-4` (copilot-extensions#53)

- **fix(types): `ModelName` is a string now**
- **docs(README): `model` parameter is no longer required for
`prompt()`. It defaults to `gpt-4`**
- **fix: `model` parameter is now optional for `prompt()`. It defaults
to `gpt-4`**

v2.6.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: `getFunctionCalls()` -b closes (copilot-extensions#50)

v2.5.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: `options.messages` for `prompt()` (copilot-extensions#49)

v2.4.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: `options.tools ` for `prompt()` (copilot-extensions#48)

v2.3.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: `prompt()` (copilot-extensions#39)

v2.2.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: `parseRequestBody()`, `transformPayloadForOpenAICompatibility()…

…`, `verifyAndParseRequest()`, `getUserMessage()`, `getUserConfirmation()` (copilot-extensions#34)

v2.1.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: `createAckEvent()`, `createTextEvent()`, `createConfirmationEve…

…nt()`, `createReferencesEvent()`, `createErrorsEvent()`, `createDoneEvent()` (copilot-extensions#32)