MCPcopy Create free account
hub / github.com/FlyingFeather/DEA-SQL / init_chatgpt

Function init_chatgpt

llm/chatgpt.py:8–14  ·  view source on GitHub ↗
(OPENAI_API_KEY, OPENAI_GROUP_ID, model)

Source from the content-addressed store, hash-verified

6
7
8def init_chatgpt(OPENAI_API_KEY, OPENAI_GROUP_ID, model):
9 if model == LLM.TONG_YI_QIAN_WEN:
10 import dashscope
11 dashscope.api_key = OPENAI_API_KEY
12 else:
13 openai.api_key = OPENAI_API_KEY
14 openai.organization = OPENAI_GROUP_ID
15
16
17def ask_completion(model, batch, temperature):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected