Skip to content

Commit

Permalink
Add support for gpt-4-1106-preview
Browse files Browse the repository at this point in the history
  • Loading branch information
cephalization committed Nov 30, 2023
1 parent 53619fc commit 21fec02
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ export const load = async ({ locals, params }) => {
};

const modelSchema = optional(
union([literal('gpt-3.5-turbo'), literal('gpt-4'), literal('gpt-3.5-turbo-16k')])
union([
literal('gpt-3.5-turbo'),
literal('gpt-4'),
literal('gpt-4-1106-preview'),
literal('gpt-3.5-turbo-16k')
])
);

export const actions = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
<option>gpt-3.5-turbo</option>
<option>gpt-3.5-turbo-16k</option>
<option>gpt-4</option>
<option>gpt-4-1106-preview</option>
</select>
<label class="label" for="model">
<span class="label-text-alt">All topics in this project will use this model</span>
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"engines": {
"node": "18"
},
"packageManager": "[email protected]",
"resolutions": {
"string-width": "4.2.3"
}
Expand Down
1 change: 1 addition & 0 deletions packages/database/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export const userRelations = relations(user, ({ many }) => ({

export const modelEnum = pgEnum("model", [
"gpt-4",
"gpt-4-1106-preview",
"gpt-3.5-turbo",
"gpt-3.5-turbo-16k",
]);
Expand Down

0 comments on commit 21fec02

Please sign in to comment.