mirror of
https://github.com/missuo/FreeGPT35.git
synced 2025-10-15 06:50:35 +00:00
style: format code
This commit is contained in:
12
example.js
12
example.js
@@ -1,18 +1,18 @@
|
||||
const axios = require('axios');
|
||||
const axios = require("axios");
|
||||
|
||||
const API_URL = 'http://localhost:3040/v1/chat/completions';
|
||||
const API_URL = "http://localhost:3040/v1/chat/completions";
|
||||
|
||||
const prompt = 'Hello, how are you?';
|
||||
const prompt = "Hello, how are you?";
|
||||
|
||||
const data = {
|
||||
model: 'gpt-3.5-turbo',
|
||||
messages: [{ role: 'user', content: prompt }],
|
||||
model: "gpt-3.5-turbo",
|
||||
messages: [{ role: "user", content: prompt }],
|
||||
temperature: 0.7,
|
||||
};
|
||||
|
||||
const config = {
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user