Better HN
topnewbestaskshowjobs
Log inSign up

init0

531 karma · joined Mar 22, 2010 (16y ago) · 454 submissions

Submissions

comment 2y ago · link · parent

Trying to openai am I missing something?

    import OpenAI from 'openai'

    const openai = new OpenAI({
      baseURL: 'http://localhost:11434/v1',
      apiKey: 'ollama', // required but unused
    })

    const chatCompletion = await 
      openai.chat.completions.create({
      model: 'llama2',
      messages: [{ role: 'user', content: 'Why is the sky blue?' }],
    })

    console.log(completion.choices[0].message.content)
I am getting the below error:

    return new NotFoundError(status, error, message, headers);
                   ^
    NotFoundError: 404 404 page not found

comment 3y ago · link · parent

It was https://geouniversal.neocities.org/ for me :D

93.

JavaScript Features(jsfeatures.in ↗)

1 points · by init0 · 3y ago · discuss

comment 4y ago · link · parent

Remeber FreedomBox?

comment 4y ago · link · parent

Why don't you wash it with water?

comment 4y ago · link · parent

Send a PR to fix it!

comment 4y ago · link · parent

Send a PR to the repo!

98.

Improving skin tone evaluation in machine learning(skintone.google ↗)

3 points · by init0 · 4y ago · discuss

12345
16