Giter Site home page Giter Site logo

Comments (2)

iodrift avatar iodrift commented on August 30, 2024

I custom API url, not work:

2023-10-11-100932

It shows:

2023-10-11-101402

But, it works well on Chrome Extension (https://github.com/openai-translator/openai-translator):

2023-10-11-101015

Is there anything wrong?

First of all, you do need to check the button that says "Change API Endpoint." But regardless, I just tested api.f2gpt.com myself:

curl https://api.f2gpt.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer [[REDACTED API KEY]]" \
  -d '{
    "messages": [
      { "role": "user", "content": "### Instruction:\n Please confirm receipt. \n\n ### Response:\n" }
    ],
    "stop": ["### Instruction:"],
    "temperature": 0.7,
    "max_tokens": 200,
    "model":"gpt-4",
    "stream": false
  }'

This returns {"error":{"message":"提供的KEY有误,详情访问 f2api.com","type":"invalid_request_error","param":null,"code":"invalid_api_key"}}%

Whereas posting the same query to https://api.openai.com/v1/chat/completions does work.

Do you have reason to trust this API? Not knowing anything about it, my guess is set up to collect people's API keys. I immediately revoked the API key I submitted to test it, and suggest you do the same unless you have a reason to trust it.

from chatgpt-raycast.

liaocaoxuezhe avatar liaocaoxuezhe commented on August 30, 2024

I send but still no result after mins, if I use in a wrong way?

image

from chatgpt-raycast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.