w14 ready
This commit is contained in:
@@ -1,10 +1,11 @@
|
|||||||
import delay from 'delay';
|
import delay from 'delay';
|
||||||
|
|
||||||
fetch('http://localhost:11434/api/generate', {
|
fetch('http://127.0.0.1:11434/api/generate', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
model: 'deepseek-r1:latest', // replace with your model name
|
model: 'deepseek-r1:latest', // replace with your model name
|
||||||
|
system: 'You are a helpful assistant.',
|
||||||
prompt: 'Tell me a joke!',
|
prompt: 'Tell me a joke!',
|
||||||
stream: false,
|
stream: false,
|
||||||
think: false,
|
think: false,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import delay from 'delay';
|
import delay from 'delay';
|
||||||
|
|
||||||
fetch('http://localhost:11434/api/generate', {
|
fetch('http://127.0.0.1:11434/api/generate', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
|
|||||||
Reference in New Issue
Block a user