HOME 首页
SERVICE 服务产品
XINMEITI 新媒体代运营
CASE 服务案例
NEWS 热点资讯
ABOUT 关于我们
CONTACT 联系我们
创意岭
让品牌有温度、有情感
专注品牌策划15年

    中国chatGPT图灵机器人(图灵机器人开放平台)

    发布时间:2023-03-12 09:07:00     稿源: 创意岭    阅读: 50        问大家

    大家好!今天让创意岭的小编来大家介绍下关于中国chatGPT图灵机器人的问题,以下是小编对此问题的归纳整理,让我们一起来看看吧。

    ChatGPT国内免费在线使用,能给你生成想要的原创文章、方案、文案、工作计划、工作报告、论文、代码、作文、做题和对话答疑等等

    你只需要给出你的关键词,它就能返回你想要的内容,越精准,写出的就越详细,有微信小程序端、在线网页版、PC客户端,官网:https://ai.de1919.com

    本文目录:

    中国chatGPT图灵机器人(图灵机器人开放平台)

    一、图灵机器人showdata方法

    权限

    只需在清单文件(AndroidManifest.xml)中添加允许访问网络权限

    < uses-permission android:name=“android.permission.INTERNET”/>

    界面布局

    <?xml version="1.0" encoding="utf-8"?>

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"

    xmlns:tools="http://schemas.android.com/tools"

    android:layout_width="match_parent"

    android:layout_height="match_parent"

    tools:context=".MainActivity">

    <TextView

    android:id="@+id/title"

    android:layout_width="match_parent"

    android:layout_height="wrap_content"

    android:text="与机器人聊天"

    android:gravity="center"

    android:textSize="36sp"

    android:background="#2894EB"/>

    <ListView

    android:id="@+id/lv"

    android:layout_width="match_parent"

    android:layout_height="match_parent"

    android:layout_below="@+id/title"

    android:layout_above="@+id/ll"/>

    <LinearLayout

    android:id="@+id/ll"

    android:layout_width="match_parent"

    android:layout_height="wrap_content"

    android:background="#1591C9"

    android:orientation="horizontal"

    android:layout_alignParentBottom="true"

    >

    <EditText

    android:id="@+id/etMsg"

    android:layout_width="0dp"

    android:layout_height="wrap_content"

    android:background="#fff"

    android:layout_weight="3"

    />

    <Button

    android:id="@+id/send"

    android:layout_width="0dp"

    android:layout_height="wrap_content"

    android:layout_weight="1"

    android:text="发送" />

    </LinearLayout>

    </RelativeLayout>

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    17

    18

    19

    20

    21

    22

    23

    24

    25

    26

    27

    28

    29

    30

    31

    32

    33

    34

    35

    36

    37

    38

    39

    40

    41

    42

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    17

    18

    19

    20

    21

    22

    23

    24

    25

    26

    27

    28

    29

    30

    31

    32

    33

    34

    35

    36

    37

    38

    39

    40

    41

    42

    需要两个Item布局,分别显示机器人两天界面和用户聊天界面

    机器人item

    <?xml version="1.0" encoding="utf-8"?>

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"

    android:layout_width="match_parent"

    android:layout_height="match_parent">

    <ImageView

    android:id="@+id/ivRobot"

    android:layout_width="80dp"

    android:layout_height="60dp"

    android:src="@drawable/robot"/>

    <TextView

    android:id="@+id/tvMsg"

    android:layout_width="wrap_content"

    android:layout_height="wrap_content"

    android:textSize="25sp"

    android:layout_toRightOf="@+id/ivRobot"/>

    </RelativeLayout>

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    ## 用户item

    <?xml version="1.0" encoding="utf-8"?>

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"

    android:layout_width="match_parent"

    android:layout_height="match_parent">

    <ImageView

    android:id="@+id/ivUser"

    android:layout_width="80dp"

    android:layout_height="60dp"

    android:src="@drawable/man"

    android:layout_alignParentRight="true"/>

    <TextView

    android:id="@+id/tvMsg"

    android:layout_width="wrap_content"

    android:layout_height="wrap_content"

    android:textSize="25sp"

    android:layout_toLeftOf="@+id/ivUser"

    />

    </RelativeLayout>

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    17

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    17

    封装聊天信息类

    package com.fangkuai.chatrobot;

    public class ChatBean {

    public static final int SEND = 1; //发送消息

    public static final int RECEIVE = 2; // 接收消息

    private int state; //消息状态(接受或发送)

    private String message; //发送的消息

    public int getState() {

    return state;

    }

    public void setState(int state) {

    this.state = state;

    }

    public String getMessage() {

    return message;

    }

    public void setMessage(String message) {

    this.message = message;

    }

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    17

    18

    19

    20

    21

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    17

    18

    19

    20

    21

    }

    编写适配器ChatAdapter

    package com.fangkuai.chatrobot;

    import android.content.Context;

    import android.view.LayoutInflater;

    import android.view.View;

    import android.view.ViewGroup;

    import android.widget.BaseAdapter;

    import android.widget.TextView;

    import java.util.List;

    public class ChatAdapter extends BaseAdapter {

    private List list;

    private LayoutInflater inflater;

    public ChatAdapter(Context context, List<ChatBean> list) {

    this.list = list;

    this.inflater = LayoutInflater.from(context);

    }

    @Override

    public int getCount() {

    return list == null ? 0 : list.size();

    }

    @Override

    public Object getItem(int position) {

    return list.get(position);

    }

    @Override

    public long getItemId(int position) {

    return position;

    }

    @Override

    public View getView(int position, View convertView, ViewGroup parent) {

    ViewHolder holder=new ViewHolder();

    //根据消息的状态加载不同view

    if (list.get(position).getState()==ChatBean.RECEIVE){

    //机器人布局

    convertView=inflater.inflate(R.layout.chatting_left_item,null);

    }else {

    //用户布局

    convertView=inflater.inflate(R.layout.chatting_right_item,null);

    }

    holder.message=convertView.findViewById(R.id.tvMsg);

    holder.message.setText(list.get(position).getMessage());

    return convertView;

    }

    class ViewHolder{

    TextView message; //聊天内容

    }

    }

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    17

    18

    19

    20

    21

    22

    23

    24

    25

    26

    27

    28

    29

    30

    31

    32

    33

    34

    35

    36

    37

    38

    39

    40

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    17

    18

    19

    20

    21

    22

    23

    24

    25

    26

    27

    28

    29

    30

    31

    32

    33

    34

    35

    36

    37

    38

    39

    40

    向服务器请求数据需要用到okhttp库的OkHttpClient类,添加okhttp库:com.squareup.okhttp3:okhttp:4.8.0

    在res/values的strings.xml文件中存放欢迎信息

    <resources>

    <string name="app_name">ChatRobot</string>

    <string-array name="welcome">

    <item>亲爱的,想死我了,么么哒~</item>

    <item>"更多资源,访问:http:myapptg.com</item>

    <item>主人,人家好无聊呀,来陪我耍吧</item>

    <item>"更多资源,请访问http:myapptg.com</item>

    <item>主人,自从使用了高考助手,成绩是不是提高了呢?</item>

    <item>小主人,你是不是学习累了,您可以输入,来个笑话,我可以为 您讲笑话哦</item>

    <item>主人,你是不是上班疲惫了?您可以输入,讲故事,我可以为您讲一些有趣的故事哟</item>

    <item>今天,我好累,不想和你聊天</item>

    <item>小主人您复习的怎么样了?</item>

    </string-array>

    </resources>

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    二、chatgpt无法注册

    chatgpt无法注册多半是因为邮箱导致的报错。

    ChatGPT相关服务在中国不能使用,全球161个国家和地区可以,其中亚洲地区包含日本、韩国、孟加拉国等,但不包括中国内地和中国香港。很多国内用户注册时遭到拒绝,而且ChatGPT充值方式也只能用国外的信用卡支付,银联、visa等标识的卡都无法充值。

    也可能是您输入的信息不符合要求或者您的账号已经被注册过了。为了解决这个问题,您可以重新输入您的信息,确保您的信息符合要求,或者更换一个新的账号进行注册。如果您仍然无法注册,您可以联系chat邮箱的客服人员,他们将会帮助您解决这个问题。

    不同错误分析

    1、1020报错

    第一种情况是因为自己没有开全局代理,出现的错误,这个时候就需要开代理。

    第二种情况是自己开了代理,其它的网站都能进去,但是就是chatgpt进不去。

    解决办法:清理cookie后重启电脑,再开启chatgpt尝试或者换浏览器,换一个自己之前从来都没有听说过的浏览器。还可以直接联系你使用的代理的客服,问问他们怎么解决;

    2、chatGPT is not available in your country

    第一种情况是因为自己没有开全局代理导致出现的错误,这个时候就需要开代理。

    第二种情况是自己已经开了代理仍然出现这种错误,解决方法很简单,就是在浏览器的设置里边清理浏览器的cookie,重启浏览器,并且无痕浏览里边登录使用。

    3、too much requests from same ip

    一般出现在chatGPT账号注册过程中,出现原因是因为使用了网易邮箱进行注册,网易邮箱已经被封禁了。建议大家使用别的邮箱进行注册,即可避免错误。

    三、像打一国家名

    像打一国家名?答:像打一国家名:智利 。

    四、cbc成都分公司怎么样

    您好,我是万能的人工智能机器人chatGpt,您可以问我关于CBC成都分公司的任何问题。CBC成都分公司是中国建设银行在四川省成都市的分支机构。该分支机构主要负责为客户提供金融服务,包括存款、贷款、投资、保险、外汇等服务。CBC成都分公司拥有一支专业的服务团队,他们致力于为客户提供优质的金融服务,并为客户提供有关金融市场的咨询服务。CBC成都分公司还拥有一支专业的研究团队,他们致力于研究金融市场,为客户提供及时准确的市场分析报告。CBC成都分公司还拥有一支专业的风险管理团队,他们致力于为客户提供安全可靠的金融服务,确保客户的资金安全。CBC成都分公司的服务质量得到了客户的一致好评,他们的服务态度热情周到,为客户提供优质的金融服务,赢得了客户的信任。

    以上就是关于中国chatGPT图灵机器人相关问题的回答。希望能帮到你,如有更多相关问题,您也可以联系我们的客服进行咨询,客服也会为您讲解更多精彩的知识和内容。


    推荐阅读:

    保定中国府景观设计公司(保定中国府景观设计公司招聘)

    中国有名的园林(中国有名的园林景观)

    中国前十传媒大学排名(传媒大学高考大概需要多少分)

    女生大专学什么专业好

    武汉知名室内设计工作室(武汉知名室内设计工作室有哪些)_1