@gammatech/aijsx 0.6.2-dev.2024-05-02 → 0.6.3-dev.2024-05-14

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/dist/index.d.mts CHANGED
@@ -145,7 +145,7 @@ declare module '@gammatech/aijsx' {
145
145
  openai: OpenAIChatCompletionRequest;
146
146
  }
147
147
  }
148
- type ValidOpenAIChatModel = 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-4-1106-preview' | 'gpt-4-0125-preview' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-16k-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125';
148
+ type ValidOpenAIChatModel = 'gpt-4o' | 'gpt-4o-2024-05-13' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-turbo' | 'gpt-4o' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-4-1106-preview' | 'gpt-4-0125-preview' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-16k-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125';
149
149
  declare const OpenAIClientContext: Context<() => ChatCompletionClientAndProvider<OpenAI>>;
150
150
  type OpenAIChatCompletionProps = {
151
151
  model: ValidOpenAIChatModel;
@@ -158,7 +158,7 @@ type OpenAIChatCompletionProps = {
158
158
  };
159
159
  declare function OpenAIChatCompletion(props: OpenAIChatCompletionProps, ctx: RenderContext): AINode;
160
160
 
161
- type ValidOpenAIVisionModel = 'gpt-4-vision-preview';
161
+ type ValidOpenAIVisionModel = 'gpt-4o' | 'gpt-4o-2024-05-13' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-turbo' | 'gpt-4-vision-preview';
162
162
  declare const ContentTypeImage: (_props: {
163
163
  url: string;
164
164
  dimensions?: {
package/dist/index.d.ts CHANGED
@@ -145,7 +145,7 @@ declare module '@gammatech/aijsx' {
145
145
  openai: OpenAIChatCompletionRequest;
146
146
  }
147
147
  }
148
- type ValidOpenAIChatModel = 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-4-1106-preview' | 'gpt-4-0125-preview' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-16k-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125';
148
+ type ValidOpenAIChatModel = 'gpt-4o' | 'gpt-4o-2024-05-13' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-turbo' | 'gpt-4o' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-4-1106-preview' | 'gpt-4-0125-preview' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-16k-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125';
149
149
  declare const OpenAIClientContext: Context<() => ChatCompletionClientAndProvider<OpenAI>>;
150
150
  type OpenAIChatCompletionProps = {
151
151
  model: ValidOpenAIChatModel;
@@ -158,7 +158,7 @@ type OpenAIChatCompletionProps = {
158
158
  };
159
159
  declare function OpenAIChatCompletion(props: OpenAIChatCompletionProps, ctx: RenderContext): AINode;
160
160
 
161
- type ValidOpenAIVisionModel = 'gpt-4-vision-preview';
161
+ type ValidOpenAIVisionModel = 'gpt-4o' | 'gpt-4o-2024-05-13' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-turbo' | 'gpt-4-vision-preview';
162
162
  declare const ContentTypeImage: (_props: {
163
163
  url: string;
164
164
  dimensions?: {
package/dist/index.js CHANGED
@@ -1723,6 +1723,10 @@ function tokenLimitForChatModel(model) {
1723
1723
  case "gpt-4-32k-0314":
1724
1724
  case "gpt-4-32k-0613":
1725
1725
  return 32768 - TOKENS_CONSUMED_BY_REPLY_PREFIX;
1726
+ case "gpt-4o":
1727
+ case "gpt-4o-2024-05-13":
1728
+ case "gpt-4-turbo-2024-04-09":
1729
+ case "gpt-4-turbo":
1726
1730
  case "gpt-4-1106-preview":
1727
1731
  case "gpt-4-0125-preview":
1728
1732
  return 128e3 - TOKENS_CONSUMED_BY_REPLY_PREFIX;
package/dist/index.mjs CHANGED
@@ -1620,6 +1620,10 @@ function tokenLimitForChatModel(model) {
1620
1620
  case "gpt-4-32k-0314":
1621
1621
  case "gpt-4-32k-0613":
1622
1622
  return 32768 - TOKENS_CONSUMED_BY_REPLY_PREFIX;
1623
+ case "gpt-4o":
1624
+ case "gpt-4o-2024-05-13":
1625
+ case "gpt-4-turbo-2024-04-09":
1626
+ case "gpt-4-turbo":
1623
1627
  case "gpt-4-1106-preview":
1624
1628
  case "gpt-4-0125-preview":
1625
1629
  return 128e3 - TOKENS_CONSUMED_BY_REPLY_PREFIX;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gammatech/aijsx",
3
- "version": "0.6.2-dev.2024-05-02",
3
+ "version": "0.6.3-dev.2024-05-14",
4
4
  "description": "Rewrite of aijsx",
5
5
  "author": "Jordan Garcia",
6
6
  "license": "MIT",