注册chatgpt,地址
1、解决not available
注册时会遇到多种问题,最常见的就是not available,openai's services are not available in you country,破解方法在这里
总结如下:
复制这段代码:
window.localStorage.removeItem(Object.keys(window.localStorage).find(i=>i.startsWith('@@auth0spajs')))
代码前面加上: javascript:
拼接起来就是:
javascript:window.localStorage.removeItem(Object.keys(window.localStorage).find(i=>i.startsWith('@@auth0spajs')))
然后粘贴到地址栏内,回车,再刷新页面,就可以了
我看了下chrome application->storage里面,确实有个auth0sajs开头的cookie,打开value,里面记录了一些账户信息以及跟地域有关的信息:比如:大洲代码、国家代码简写、时区等,
我的是CN,本来以为手动修改下,改成US就可以了,但后来发现还是不行。
文章中提示需要开全局代理,我把clash切换到了UK试了下,果然好使了。
2、手机验证
经过以上步骤,终于不再出现not available了,可以正常输入first name和last name,但输入手机号码时,尝试了GV,是不可以的,提示是VOIP电话,所以来到这个sms-activate租了个号码,用于接收短信,这里介绍了如何充值、如何使用sms-activate。
我买了一个UK的手机号码,终于可以正常使用openai了,
果然很厉害呀,居然还可以英文中文混合输入进行提问,也回答的有板有眼:
Q:do you know 易经?
A:Yes, I am familiar with the "Yijing" or the "Book of Changes." It is an ancient Chinese divination text and one of the Five Classics of Chinese literature. The Yijing consists of 64 hexagrams, which are symbolic representations of different states or circumstances, and a set of judgments and commentaries associated with each hexagram. The Yijing has been used for many centuries in China for divination and as a guide for moral and ethical decision making. It is also studied by many people as a philosophical text and for its insights into Chinese culture and history.
Q:do you know 推背图?
A:Yes, I am familiar with "Tuibeitu," which is a type of diagram used in traditional Chinese culture for divination purposes. The "Tuibeitu" is a kind of matrix chart or grid used to generate different combinations of symbols or characters, which are then interpreted to provide guidance or insight into a specific question or situation. In some cases, the symbols are used to generate answers to specific questions, while in others they are used to generate a narrative or story that provides context for the divination. The "Tuibeitu" is one of several traditional Chinese divination methods, and it is believed to have been used for thousands of years in China.
Q:红黑树
A:红黑树是一种特殊的二叉查找树,具有以下特点:
每个节点要么是红色的,要么是黑色的。
根节点是黑色的。
叶子节点是黑色的(在本质上,红黑树的叶子节点不是真正的节点,它们是NIL节点)。
如果一个节点是红色的,则它的两个儿子都是黑色的。
对于任意一个节点,从该节点到其所有后代叶子节点的简单路径上,均包含相同数目的黑色节点。
因其具有稳定性,快速查询的特点,红黑树常用于实现诸如字典、集合、map等数据结构。
Q:python写红黑树
A:下面是一个使用 Python 实现红黑树的示例代码:
class Node:
def __init__(self, key, value, color):
self.key = key
self.value = value
self.left = None
self.right = None
self.color = color
class RedBlackTree:
def __init__(self):
self.root = None
def is_red(self, node):
if node is None:
return False
return node.color == "red"
def rotate_left(self, node):
x = node.right
node.right = x.left
x.left = node
x.color = node.color
node.color = "red"
return x
def rotate_right(self, node):
x = node.left
node.left = x.right
x.right = node
x.color = node.color
node.color = "red"
return x
def flip_colors(self, node):
node.left.color = "black"
node.right.color = "black"
node.color = "red"
def insert(self, key, value):
self.root = self._insert(self.root, key, value)
self.root.color = "black"
def _insert(self, node, key, value):
if node is None:
return Node(key, value, "red")
if key < node.key:
node.left = self._insert(node.left, key, value)
elif key > node.key:
node.right = self._insert(node.right, key, value)
else:
node.value = value
if self.is_red(node.right) and not self.is_red(node.left):
node = self.rotate_left(node)
if self.is_red(node.left) and self.is_red(node.left.left):
node = self.rotate_right(node)
if self.is_red(node.left) and self.is_red(node.right):
self.flip_colors(node)
return node
这是一个简单的红黑树的实现,它包含了插入、旋转和翻转颜色等基本操作。
请注意,上面的代码仅用于演示红黑树的基本原理,实际应用中,您可能需要对红黑树进行更多的扩展和优化,以适应
Q:please provide me the chatgpt api url,thanks
A:I'm sorry, OpenAI doesn't provide a public API URL for ChatGPT. OpenAI provides APIs for its language generation models through the OpenAI GPT-3 API, which is a cloud-based API service for generating text based on the GPT-3 language model. To use the API, you will need to sign up for an API key and make API requests through the OpenAI API platform. For more information, you can visit the OpenAI API website at https://beta.openai.com/.