近几天llama3.1比较火,推个405b免费使用的站

兼容流式兼容OpenAi格式,可以直接走它的api调用,或者使用下面的api请求

同样可以使用 HuggingChathttps://playground.ai.cloudflare.com/

import fetch from 'node-fetch';

async function getChatCompletion(model, messages, authorization, stream = false) {
  const url = "https://api.fireworks.ai/inference/v1/chat/completions";
  const headers = {
    "accept": "text/event-stream",
    "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
    "authorization": `Bearer ${authorization}`,
    "content-type": "application/json",
    "priority": "u=1, i",
    "sec-ch-ua": "\"Not/A)Brand\";v=\"8\", \"Chromium\";v=\"126\", \"Microsoft Edge\";v=\"126\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-site"
  };
  const body = {
    model,
    messages,
    stream,
    max_tokens: 16384,
    top_p: 1,
    top_k: 40,
    presence_penalty: 0,
    frequency_penalty: 0,
    temperature: 0.6,
    n: 1,
    logprobs: 1
  };
  try {
    const response = await fetch(url, {
      method: 'POST',
      headers: headers,
      body: JSON.stringify(body),
      referrerPolicy: 'no-referrer'
    });
    if (!response.ok) {
      return null;
    }
    const data = await response.json();
    console.log(data);
  } catch (error) {
    console.error(error);
    return null;
  }
}

const authorization = 'xxx'; //登录F12拿
const model = "accounts/fireworks/models/llama-v3p1-405b-instruct";
const messages = [{ role: "user", content: "你好" }];
getChatCompletion(model, messages, authorization);
3 个赞

感谢分享

1 个赞

不太兼容,直接放new-api用不了

1 个赞

感谢分享

1 个赞

感谢

1 个赞

newapi要自订渠道

自定义渠道用起来也有问题的

他这个是,注册送50美元?

恰好今天测试 llama3.1,本地运行一点也不卡,相当巴适

送一刀,可信额度50刀,调用几次就没了


chatbot用起来没问题
我是用开发工具取得authorization

一小时更新计费消耗,待会看看剩余

1刀的话就懒得弄了~哈哈几下就没了

首页那个体验的好像是无限的但是token只给到2000,不知道有没有大佬逆向出来

感谢分享。

对只有1刀,剩0.92

感谢

这里也可以免费用

From #develop:ai to 资源荟萃