mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
fix tests
This commit is contained in:
parent
ff2ddafab7
commit
678963a5ea
6 changed files with 7 additions and 7 deletions
|
|
@ -249,7 +249,7 @@ client = OpenAI(
|
|||
|
||||
response = client.chat.completions.create(
|
||||
# we select model from arch_config file
|
||||
model="--",
|
||||
model="None",
|
||||
messages=[{"role": "user", "content": "What is the capital of France?"}],
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ impl HttpContext for StreamContext {
|
|||
messages: deserialized_body.messages.clone(),
|
||||
metadata,
|
||||
stream: deserialized_body.stream,
|
||||
model: "--".to_string(),
|
||||
model: deserialized_body.model.clone(),
|
||||
stream_options: deserialized_body.stream_options.clone(),
|
||||
tools: Some(tool_calls),
|
||||
};
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ def chat(
|
|||
try:
|
||||
response = client.chat.completions.create(
|
||||
# we select model from arch_config file
|
||||
model="--",
|
||||
model="None",
|
||||
messages=history,
|
||||
temperature=1.0,
|
||||
stream=True,
|
||||
|
|
|
|||
|
|
@ -54,13 +54,13 @@ def chat(
|
|||
if model_selector and model_selector != "":
|
||||
headers["x-arch-llm-provider-hint"] = model_selector
|
||||
client = OpenAI(
|
||||
api_key="--",
|
||||
api_key="None",
|
||||
base_url=CHAT_COMPLETION_ENDPOINT,
|
||||
default_headers=headers,
|
||||
)
|
||||
response = client.chat.completions.create(
|
||||
# we select model from arch_config file
|
||||
model="--",
|
||||
model="None",
|
||||
messages=history,
|
||||
temperature=1.0,
|
||||
stream=True,
|
||||
|
|
|
|||
|
|
@ -238,7 +238,7 @@ POST {{model_server_endpoint}}/function_calling HTTP/1.1
|
|||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"model": "--",
|
||||
"model": "None",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ POST {{prompt_endpoint}}/v1/chat/completions HTTP/1.1
|
|||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"model": "--",
|
||||
"model": "None",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue