chatanywhere / GPT_API_free

Free ChatGPT API Key,免费ChatGPT API,支持GPT4 API(免费),ChatGPT国内可用免费转发API,直连无需代理。可以搭配ChatBox等软件/插件使用,极大降低接口使用成本。国内即可无限制畅快聊天。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

免费账号报错403

xym003 opened this issue · comments

代码如下:
`import os
from langchain.chains import LLMChain
from langchain_core.prompts import PromptTemplate
from langchain_openai import OpenAI

template = """Question: {question}
Answer: Let's think step by step."""

prompt = PromptTemplate.from_template(template)

api_key = "---"#正确输入了
api_base = "https://api.chatanywhere.tech/v1"
llm = OpenAI(api_key=api_key, base_url=api_base,model_name="gpt-3.5-turbo")

llm_chain = LLMChain(prompt=prompt, llm=llm)
question = "What NFL team won the Super Bowl in the year Justin Beiber was born?"

llm_chain.invoke(question)`
我看到项目简介里是支持langchain的,为什么会一直报403错误呢?是不支持langchain的分包吗?
恳请解答

commented

这个用了不是免费的模型了 它里面还用了其他的模型 应该是