Comments (5)
Use http://localhost:3040/v1/
(a slash at the end is needed).
from chatgpt.
npm start
[email protected] start
tsc && node dist/app.js
src/app.ts:1:58 - error TS2307: Cannot find module 'express' or its corresponding type declarations.
1 import express, { Request, Response, NextFunction } from "express";
~~~~~~~~~
src/app.ts:2:24 - error TS2307: Cannot find module 'body-parser' or its corresponding type declarations.
2 import bodyParser from "body-parser";
~~~~~~~~~~~~~
src/app.ts:3:19 - error TS2307: Cannot find module 'axios' or its corresponding type declarations.
3 import axios from "axios";
~~~~~~~
src/app.ts:4:19 - error TS2307: Cannot find module 'https' or its corresponding type declarations.
4 import https from "https";
~~~~~~~
src/app.ts:5:28 - error TS2307: Cannot find module 'crypto' or its corresponding type declarations.
5 import { randomUUID } from "crypto";
~~~~~~~~
src/app.ts:35:23 - error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try npm i --save-dev @types/node
.
35 const bufferChunk = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
~~~~~~
src/app.ts:35:56 - error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try npm i --save-dev @types/node
.
35 const bufferChunk = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
~~~~~~
Found 7 errors in the same file, starting at: src/app.ts:1
from chatgpt.
@Ptagdam, there are no errors, you need to install the dependencies first.
Run the start.bat or start.sh file as I mentioned in the instructions,
or execute npm install
before npm start
.
from chatgpt.
@Ptagdam, there are no errors, you need to install the dependencies first.
Run the start.bat or start.sh file as I mentioned in the instructions, or execute
npm install
beforenpm start
.
Again same error
from chatgpt.
@Ptagdam, please follow the instructions. Make sure you have Node.js version 19 or later. delete node_modules
folder if exists, Use the start file (start.bat for Windows and start.sh for Linux). If you encounter any errors when executing the start file, show them to me.
from chatgpt.
Related Issues (20)
- Is it possible to deploy on AWS Lambda?
- Get session id error. HOT 1
- Error message from OpenAI: Our systems have detected unusual activity from your device. Please refresh your browser and try again later. π₯ HOT 2
- The requested endpoint (POST /v1/embeddings) was not found. please make sure to use "http://localhost:3040/v1" as the base URL HOT 2
- Error getting a new session HOT 2
- i get an error saying my country might not be supported despite it working two days ago HOT 9
- problem when requesting data
- problem HOT 1
- Error while getting new session HOT 4
- Question: HOT 2
- the ai sends empty respones HOT 1
- δ»δΈθ½εζδΏ‘ζ―
- The requested endpoint (GET /v1/chat/completions) was not found HOT 16
- Run the API in LAN
- why return openai.InternalServerError: Error code: 503? HOT 2
- gpt 4o support HOT 1
- An error occurred. please try again. Additionally, ensure that your request complies with OpenAI's policy HOT 4
- api returns None HOT 5
- Error: messages is required! and must be an array of objects with content and role properties HOT 2
- System.Net.Http.HttpRequestException: 'Response status code does not indicate success: 401 (Unauthorized).'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatgpt.