HOME 首頁
SERVICE 服務(wù)產(chǎn)品
XINMEITI 新媒體代運營
CASE 服務(wù)案例
NEWS 熱點資訊
ABOUT 關(guān)于我們
CONTACT 聯(lián)系我們
創(chuàng)意嶺
讓品牌有溫度、有情感
專注品牌策劃15年

    中國chatGPT圖靈機器人(圖靈機器人開放平臺)

    發(fā)布時間:2023-03-12 09:07:00     稿源: 創(chuàng)意嶺    閱讀: 50        問大家

    大家好!今天讓創(chuàng)意嶺的小編來大家介紹下關(guān)于中國chatGPT圖靈機器人的問題,以下是小編對此問題的歸納整理,讓我們一起來看看吧。

    ChatGPT國內(nèi)免費在線使用,能給你生成想要的原創(chuàng)文章、方案、文案、工作計劃、工作報告、論文、代碼、作文、做題和對話答疑等等

    你只需要給出你的關(guān)鍵詞,它就能返回你想要的內(nèi)容,越精準(zhǔn),寫出的就越詳細(xì),有微信小程序端、在線網(wǎng)頁版、PC客戶端,官網(wǎng):https://ai.de1919.com

    本文目錄:

    中國chatGPT圖靈機器人(圖靈機器人開放平臺)

    一、圖靈機器人showdata方法

    權(quán)限

    只需在清單文件(AndroidManifest.xml)中添加允許訪問網(wǎng)絡(luò)權(quán)限

    < 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="發(fā)送" />

    </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; //發(fā)送消息

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

    private int state; //消息狀態(tài)(接受或發(fā)送)

    private String message; //發(fā)送的消息

    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();

    //根據(jù)消息的狀態(tài)加載不同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; //聊天內(nèi)容

    }

    }

    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

    向服務(wù)器請求數(shù)據(jù)需要用到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>小主人,你是不是學(xué)習(xí)累了,您可以輸入,來個笑話,我可以為 您講笑話哦</item>

    <item>主人,你是不是上班疲憊了?您可以輸入,講故事,我可以為您講一些有趣的故事喲</item>

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

    <item>小主人您復(fù)習(xí)的怎么樣了?</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無法注冊多半是因為郵箱導(dǎo)致的報錯。

    ChatGPT相關(guān)服務(wù)在中國不能使用,全球161個國家和地區(qū)可以,其中亞洲地區(qū)包含日本、韓國、孟加拉國等,但不包括中國內(nèi)地和中國香港。很多國內(nèi)用戶注冊時遭到拒絕,而且ChatGPT充值方式也只能用國外的信用卡支付,銀聯(lián)、visa等標(biāo)識的卡都無法充值。

    也可能是您輸入的信息不符合要求或者您的賬號已經(jīng)被注冊過了。為了解決這個問題,您可以重新輸入您的信息,確保您的信息符合要求,或者更換一個新的賬號進行注冊。如果您仍然無法注冊,您可以聯(lián)系chat郵箱的客服人員,他們將會幫助您解決這個問題。

    不同錯誤分析

    1、1020報錯

    第一種情況是因為自己沒有開全局代理,出現(xiàn)的錯誤,這個時候就需要開代理。

    第二種情況是自己開了代理,其它的網(wǎng)站都能進去,但是就是chatgpt進不去。

    解決辦法:清理cookie后重啟電腦,再開啟chatgpt嘗試或者換瀏覽器,換一個自己之前從來都沒有聽說過的瀏覽器。還可以直接聯(lián)系你使用的代理的客服,問問他們怎么解決;

    2、chatGPT is not available in your country

    第一種情況是因為自己沒有開全局代理導(dǎo)致出現(xiàn)的錯誤,這個時候就需要開代理。

    第二種情況是自己已經(jīng)開了代理仍然出現(xiàn)這種錯誤,解決方法很簡單,就是在瀏覽器的設(shè)置里邊清理瀏覽器的cookie,重啟瀏覽器,并且無痕瀏覽里邊登錄使用。

    3、too much requests from same ip

    一般出現(xiàn)在chatGPT賬號注冊過程中,出現(xiàn)原因是因為使用了網(wǎng)易郵箱進行注冊,網(wǎng)易郵箱已經(jīng)被封禁了。建議大家使用別的郵箱進行注冊,即可避免錯誤。

    三、像打一國家名

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

    四、cbc成都分公司怎么樣

    您好,我是萬能的人工智能機器人chatGpt,您可以問我關(guān)于CBC成都分公司的任何問題。CBC成都分公司是中國建設(shè)銀行在四川省成都市的分支機構(gòu)。該分支機構(gòu)主要負(fù)責(zé)為客戶提供金融服務(wù),包括存款、貸款、投資、保險、外匯等服務(wù)。CBC成都分公司擁有一支專業(yè)的服務(wù)團隊,他們致力于為客戶提供優(yōu)質(zhì)的金融服務(wù),并為客戶提供有關(guān)金融市場的咨詢服務(wù)。CBC成都分公司還擁有一支專業(yè)的研究團隊,他們致力于研究金融市場,為客戶提供及時準(zhǔn)確的市場分析報告。CBC成都分公司還擁有一支專業(yè)的風(fēng)險管理團隊,他們致力于為客戶提供安全可靠的金融服務(wù),確??蛻舻馁Y金安全。CBC成都分公司的服務(wù)質(zhì)量得到了客戶的一致好評,他們的服務(wù)態(tài)度熱情周到,為客戶提供優(yōu)質(zhì)的金融服務(wù),贏得了客戶的信任。

    以上就是關(guān)于中國chatGPT圖靈機器人相關(guān)問題的回答。希望能幫到你,如有更多相關(guān)問題,您也可以聯(lián)系我們的客服進行咨詢,客服也會為您講解更多精彩的知識和內(nèi)容。


    推薦閱讀:

    保定中國府景觀設(shè)計公司(保定中國府景觀設(shè)計公司招聘)

    中國有名的園林(中國有名的園林景觀)

    中國前十傳媒大學(xué)排名(傳媒大學(xué)高考大概需要多少分)

    女生大專學(xué)什么專業(yè)好

    武漢知名室內(nèi)設(shè)計工作室(武漢知名室內(nèi)設(shè)計工作室有哪些)_1