@raycast/api 1.82.4 → 1.83.0

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/meta.json CHANGED
@@ -2228,7 +2228,7 @@
2228
2228
  "format": "esm"
2229
2229
  },
2230
2230
  "src/api/app/ai.ts": {
2231
- "bytes": 8232,
2231
+ "bytes": 7750,
2232
2232
  "imports": [
2233
2233
  {
2234
2234
  "path": "node:events",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raycast/api",
3
- "version": "1.82.4",
3
+ "version": "1.83.0",
4
4
  "description": "Build extensions for Raycast with React and Node.js.",
5
5
  "author": "Raycast Technologies Ltd.",
6
6
  "homepage": "https://developers.raycast.com",
package/types/index.d.ts CHANGED
@@ -488,10 +488,9 @@ export declare namespace AI {
488
488
  export type Creativity = "none" | "low" | "medium" | "high" | "maximum" | number;
489
489
  /**
490
490
  * The AI model to use to answer to the prompt.
491
- * @defaultValue `AI.Model["OpenAI_GPT3.5-turbo"]`
491
+ * @defaultValue `AI.Model["OpenAI_GPT4o-mini"]`
492
492
  */
493
493
  export enum Model {
494
- "OpenAI_GPT3.5-turbo" = "openai-gpt-3.5-turbo",
495
494
  OpenAI_GPT4 = "openai-gpt-4",
496
495
  "OpenAI_GPT4-turbo" = "openai-gpt-4-turbo",
497
496
  OpenAI_GPT4o = "openai-gpt-4o",
@@ -509,7 +508,7 @@ export declare namespace AI {
509
508
  "Perplexity_Llama3.1_Sonar_Huge" = "perplexity-llama-3.1-sonar-huge-128k-online",
510
509
  "Perplexity_Llama3.1_Sonar_Large" = "perplexity-llama-3.1-sonar-large-128k-online",
511
510
  "Perplexity_Llama3.1_Sonar_Small" = "perplexity-llama-3.1-sonar-small-128k-online",
512
- /** @deprecated Use `AI.Model["OpenAI_GPT3.5-turbo"]` instead */
511
+ /** @deprecated Use `AI.Model["OpenAI_GPT4o-mini"]` instead */
513
512
  "OpenAI_GPT3.5-turbo-instruct" = "openai-gpt-3.5-turbo-instruct",
514
513
  /** @deprecated Use `AI.Model.Llama3_70B` instead */
515
514
  Llama2_70B = "llama2-70b",
@@ -522,28 +521,9 @@ export declare namespace AI {
522
521
  /** @deprecated Use `AI.Model["Perplexity_Llama3.1_Sonar_Large"]` instead */
523
522
  Perplexity_Llama3_Sonar_Large = "perplexity-llama-3-sonar-large-online",
524
523
  /** @deprecated Use `AI.Model["Perplexity_Llama3.1_Sonar_Small"]` instead */
525
- Perplexity_Llama3_Sonar_Small = "perplexity-llama-3-sonar-small-online"
526
- }
527
- export namespace AttachmentProvider {
528
- export type Direct = () => string | Promise<string>;
529
- export type Submenu = () => {
530
- id: string;
531
- title: string;
532
- content: () => string | Promise<string>;
533
- }[] | Promise<{
534
- id: string;
535
- title: string;
536
- content: () => string | Promise<string>;
537
- }[]>;
538
- export type TypeAheadSubmenu = (query: string) => {
539
- id: string;
540
- title: string;
541
- content: () => string | Promise<string>;
542
- }[] | Promise<{
543
- id: string;
544
- title: string;
545
- content: () => string | Promise<string>;
546
- }[]>;
524
+ Perplexity_Llama3_Sonar_Small = "perplexity-llama-3-sonar-small-online",
525
+ /** @deprecated Use `AI.Model["OpenAI_GPT4o-mini"]` instead */
526
+ "OpenAI_GPT3.5-turbo" = "openai-gpt-3.5-turbo"
547
527
  }
548
528
  /** @deprecated Use the `AI.Model` enum instead */
549
529
  export type __DeprecatedModelUnion = "openai-gpt-3.5-turbo-instruct" | "openai-gpt-3.5-turbo" | "openai-gpt-4" | "openai-gpt-4-turbo" | "anthropic-claude-haiku" | "anthropic-claude-opus" | "anthropic-claude-sonnet" | "perplexity-sonar-medium-online" | "perplexity-sonar-small-online" | "llama2-70b" | "mixtral-8x7b" | "codellama-70b-instruct"