nuxt-chatgpt 0.1.7 → 0.1.9

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/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "0.1.7"
7
+ "version": "0.1.9"
8
8
  }
@@ -2,7 +2,7 @@ import { createError, defineEventHandler, readBody } from "h3";
2
2
  import { Configuration, OpenAIApi } from "openai";
3
3
  import { useRuntimeConfig } from "#imports";
4
4
  export default defineEventHandler(async (event) => {
5
- const { prompt } = await readBody(event);
5
+ const prompt = await readBody(event);
6
6
  const configuration = new Configuration({
7
7
  apiKey: useRuntimeConfig().chatgpt.apiKey
8
8
  });
@@ -1,7 +1,3 @@
1
- export interface IHeaders {
2
- [key: string]: string;
3
- }
4
-
5
1
  export interface IChatgptClient {
6
2
  send ( IMessage ) : Promise
7
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-chatgpt",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "ChatGPT integration for Nuxt 3",
5
5
  "license": "MIT",
6
6
  "type": "module",