Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

feat: update model names #30

Merged
merged 5 commits into from
Jun 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat: update model names
0xcadams committed Jun 11, 2024
commit e1734ac08e8f089312c2558c0ef68344f74b8044
5 changes: 5 additions & 0 deletions .changeset/wise-clocks-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"hopfield": patch
---

**Feature:**: updated the model names for OpenAI to be more complete and up to date.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -4,8 +4,8 @@
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"editor.codeActionsOnSave": {
"quickfix.biome": true,
"source.organizeImports.biome": true
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
},
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
6 changes: 1 addition & 5 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.0.0/schema.json",
"$schema": "https://biomejs.dev/schemas/1.3.3/schema.json",
"files": {
"ignore": [
"_cjs",
@@ -29,9 +29,6 @@
"correctness": {
"noUnusedVariables": "error"
},
"nursery": {
"useGroupedTypeImport": "off"
},
"performance": {
"noDelete": "off"
},
@@ -50,7 +47,6 @@
"javascript": {
"formatter": {
"quoteStyle": "single",
"trailingComma": "all",
"semicolons": "always"
}
},
Binary file modified bun.lockb
Binary file not shown.
22 changes: 0 additions & 22 deletions docs/chat/functions.md
Original file line number Diff line number Diff line change
@@ -156,25 +156,3 @@ if (response.choices[0].__type === "function_call") {
// ^?
}
```

### Options

The `function` also allows an optional `options` parameter, which lets you override the runtime checks for the
schema. This includes the checks for requiring descriptions on Zod schema parameters, as well as overriding the
list of "disabled types", which are Zod types which typically produce unreliable results from an LLM.

```ts
type HopfieldFunctionOptions = {
/**
* Allows descriptions to not be checked on the function parameters. This defaults to `true`.
*/
requireDescriptions?: boolean;
/**
* Allows you override or disable "unstable" types, which are types that do not typically
* produce good results with a given model. These are defined on a per-model basis.
*
* Set to false to allow all "unstable" types.
*/
disabledTypes?: ZodFirstPartyTypeKind[] | false;
};
```
2 changes: 1 addition & 1 deletion examples/cloudflare-worker/src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { UnstableDevWorker, unstable_dev } from 'wrangler';
import { type UnstableDevWorker, unstable_dev } from 'wrangler';
import { describe, beforeAll, afterAll, it, expect } from 'vitest';

describe('Worker', () => {
Loading