mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 00:36:34 +02:00
update llm router port value
This commit is contained in:
parent
c0f0c22fb4
commit
d3ccddb72c
1 changed files with 4 additions and 1 deletions
|
|
@ -109,12 +109,15 @@ Make outbound calls via Arch
|
||||||
import openai
|
import openai
|
||||||
|
|
||||||
# Set the OpenAI API base URL to the Arch gateway endpoint
|
# Set the OpenAI API base URL to the Arch gateway endpoint
|
||||||
openai.api_base = "http://127.0.0.1:51001/v1"
|
openai.api_base = "http://127.0.0.1:12000/"
|
||||||
|
|
||||||
# No need to set openai.api_key since it's configured in Arch's gateway
|
# No need to set openai.api_key since it's configured in Arch's gateway
|
||||||
|
|
||||||
# Use the OpenAI client as usual
|
# Use the OpenAI client as usual
|
||||||
|
# we set api_key to '--' becasue openai client would fail to initiate request without it. Just pass any
|
||||||
|
# dummy value here since arch gateway will properly pass access key before making outbound call.
|
||||||
response = openai.Completion.create(
|
response = openai.Completion.create(
|
||||||
|
api_key="--",
|
||||||
model="text-davinci-003",
|
model="text-davinci-003",
|
||||||
prompt="What is the capital of France?"
|
prompt="What is the capital of France?"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue