From cb90b819a50d221505f5e8bdac1676185e225d0f Mon Sep 17 00:00:00 2001 From: linweiyuan Date: Sun, 24 Sep 2023 23:15:21 +0800 Subject: [PATCH] remove idea http client config --- example/{vscode => }/chatgpt.http | 0 example/idea/chatgpt.http | 128 ------------------------------ example/idea/http-client.env.json | 16 ---- example/{idea => }/imitate.http | 0 example/{vscode => }/ios.http | 0 example/{idea => }/platform.http | 0 example/vscode/imitate.http | 19 ----- example/vscode/platform.http | 65 --------------- 8 files changed, 228 deletions(-) rename example/{vscode => }/chatgpt.http (100%) delete mode 100644 example/idea/chatgpt.http delete mode 100644 example/idea/http-client.env.json rename example/{idea => }/imitate.http (100%) rename example/{vscode => }/ios.http (100%) rename example/{idea => }/platform.http (100%) delete mode 100644 example/vscode/imitate.http delete mode 100644 example/vscode/platform.http diff --git a/example/vscode/chatgpt.http b/example/chatgpt.http similarity index 100% rename from example/vscode/chatgpt.http rename to example/chatgpt.http diff --git a/example/idea/chatgpt.http b/example/idea/chatgpt.http deleted file mode 100644 index 502363d32..000000000 --- a/example/idea/chatgpt.http +++ /dev/null @@ -1,128 +0,0 @@ -### login -POST {{baseUrl}}/chatgpt/login -Content-Type: application/json - -{ - "username": "{{username}}", - "password": "{{password}}" -} - -### get conversations -GET {{baseUrl}}/chatgpt/backend-api/conversations?offset=0&limit=3&order=updated -Authorization: Bearer {{accessToken}} - -### get conversation -GET {{baseUrl}}/chatgpt/backend-api/conversation/id -Authorization: Bearer {{accessToken}} - -### create conversation -POST {{baseUrl}}/chatgpt/backend-api/conversation -Authorization: Bearer {{accessToken}} -Content-Type: application/json -Accept: text/event-stream - -{ - "action": "next", - "messages": [ - { - "id": "{{$random.uuid}}", - "author": { - "role": "user" - }, - "content": { - "content_type": "text", - "parts": [ - "hello" - ] - }, - "metadata": {} - } - ], - "model": "gpt-4", - "timezone_offset_min": -480, - "history_and_training_disabled": false -} - -### get models -GET {{baseUrl}}/chatgpt/backend-api/models?history_and_training_disabled=false -Authorization: Bearer {{accessToken}} - -### check account -GET {{baseUrl}}/chatgpt/backend-api/accounts/check -Authorization: Bearer {{accessToken}} - -### check account v4 -GET {{baseUrl}}/chatgpt/backend-api/accounts/check/v4-2023-04-27 -Authorization: Bearer {{accessToken}} - -### get settings beta features -GET {{baseUrl}}/chatgpt/backend-api/settings/beta_features -Authorization: Bearer {{accessToken}} - -### get conversation limit (no need to pass access token) -GET {{baseUrl}}/chatgpt/public-api/conversation_limit - -### get models with pandora enabled -GET {{baseUrl}}/api/models?history_and_training_disabled=false -Authorization: Bearer {{accessToken}} - -### share link to chat -POST {{baseUrl}}/chatgpt/backend-api/share/create -Authorization: Bearer {{accessToken}} -Content-Type: application/json - -{ - "current_node_id": "9020711b-3dcf-4705-82ac-46b5af30fc7b", - "conversation_id": "74c406dd-a2e8-477a-b420-90ed57a55bf9", - "is_anonymous": false -} - -### copy link -PATCH {{baseUrl}}/chatgpt/backend-api/share/{share_id} -Authorization: Bearer {{accessToken}} -Content-Type: application/json - -{ - "share_id": "49cd2432-d084-4ab7-8549-4ee18046812b", - "highlighted_message_id": null, - "title": "Summarize Request and Response 11122", - "is_public": false, - "is_visible": false, - "is_anonymous": true -} - -### continue shared conversation -POST {{baseUrl}}/chatgpt/backend-api/conversation -Authorization: Bearer {{accessToken}} -Content-Type: application/json - -{ - "action": "next", - "messages": [{ - "id": "{{$random.uuid}}", - "author": { - "role": "user" - }, - "content": { - "content_type": "text", - "parts": [ - "hello again" - ] - }, - "metadata": {} - }], - "continue_from_shared_conversation_id": "this is the share_id", - "parent_message_id": "this is the current_node_id", - "model": "text-davinci-002-render-sha", - "timezone_offset_min": -480, - "history_and_training_disabled": false, - "arkose_token": null -} - -### get plugins -GET {{baseUrl}}/chatgpt/backend-api/aip/p?offset=0&limit=250&statuses=approved -Authorization: Bearer {{accessToken}} - -### get payment url -GET {{baseUrl}}/chatgpt/backend-api/payments/customer_portal -Authorization: Bearer {{accessToken}} diff --git a/example/idea/http-client.env.json b/example/idea/http-client.env.json deleted file mode 100644 index e00ac5f81..000000000 --- a/example/idea/http-client.env.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "gpt3.5": { - "baseUrl": "", - "username": "", - "password": "", - "accessToken": "", - "apiKey": "" - }, - "gpt4": { - "baseUrl": "", - "username": "", - "password": "", - "accessToken": "", - "apiKey": "" - } -} diff --git a/example/idea/imitate.http b/example/imitate.http similarity index 100% rename from example/idea/imitate.http rename to example/imitate.http diff --git a/example/vscode/ios.http b/example/ios.http similarity index 100% rename from example/vscode/ios.http rename to example/ios.http diff --git a/example/idea/platform.http b/example/platform.http similarity index 100% rename from example/idea/platform.http rename to example/platform.http diff --git a/example/vscode/imitate.http b/example/vscode/imitate.http deleted file mode 100644 index d665be99e..000000000 --- a/example/vscode/imitate.http +++ /dev/null @@ -1,19 +0,0 @@ -### Create chat completion -POST {{baseUrl}}/imitate/v1/chat/completions -Content-Type: application/json -Authorization: Bearer {{accessToken}} - -{ - "model": "gpt-3.5-turbo", - "messages": [ - { - "role": "system", - "content": "You are a helpful assistant." - }, - { - "role": "user", - "content": "Hello!" - } - ], - "stream": true -} diff --git a/example/vscode/platform.http b/example/vscode/platform.http deleted file mode 100644 index a0a84eb10..000000000 --- a/example/vscode/platform.http +++ /dev/null @@ -1,65 +0,0 @@ -### login -POST {{baseUrl}}/platform/login -Content-Type: application/json - -{ - "username": "{{username}}", - "password": "{{password}}" -} - -### get models -GET {{baseUrl}}/platform/v1/models -Authorization: Bearer {{apiKey}} - -### get model -GET {{baseUrl}}/platform/v1/models/gpt-3.5-turbo-16k-0613 -Authorization: Bearer {{apiKey}} - -### Create chat completion -POST {{baseUrl}}/platform/v1/chat/completions -Content-Type: application/json -Authorization: Bearer {{apiKey}} - -{ - "model": "gpt-3.5-turbo", - "messages": [ - { - "role": "system", - "content": "You are a helpful assistant." - }, - { - "role": "user", - "content": "Hello!" - } - ], - "stream": true -} - -### Create completion -POST {{baseUrl}}/platform/v1/completions -Content-Type: application/json -Authorization: Bearer {{apiKey}} - -{ - "model": "text-davinci-003", - "prompt": "Say this is a test", - "max_tokens": 7, - "temperature": 0, - "stream": true -} - -### get user api_keys -GET {{baseUrl}}/platform/dashboard/user/api_keys -Authorization: Bearer {{apiKey}} - -### get billing credit_grants -GET {{baseUrl}}/platform/dashboard/billing/credit_grants -Authorization: Bearer {{apiKey}} - -### get billing subscription -GET {{baseUrl}}/platform/dashboard/billing/subscription -Authorization: Bearer {{apiKey}} - -### get billing usage -GET {{baseUrl}}/platform/dashboard/billing/usage?end_date=2023-07-01&start_date=2023-06-01 -Authorization: Bearer {{apiKey}}