adjustments

This commit is contained in:
2026-02-26 16:38:41 -03:00
parent ff47020a13
commit 977d3b2ed3

View File

@@ -188,8 +188,9 @@ OCI_GENAI_ENDPOINT = os.getenv(
``` python ``` python
MODEL_MAP = { MODEL_MAP = {
"gpt-4o-mini": "openai.gpt-4.1", "gpt-5": "openai.gpt-4.1",
"text-embedding-3-small": "cohere.embed-multilingual-v3.0", "openai/gpt-5": "openai.gpt-4.1",
"openai-compatible/gpt-5": "openai.gpt-4.1",
} }
``` ```
@@ -281,7 +282,7 @@ Payload structure:
"compartmentId": "...", "compartmentId": "...",
"servingMode": { "servingMode": {
"servingType": "ON_DEMAND", "servingType": "ON_DEMAND",
"modelId": "openai.gpt-4.1" "modelId": "gpt-5"
}, },
"chatRequest": { "chatRequest": {
"apiFormat": "GENERIC", "apiFormat": "GENERIC",
@@ -336,7 +337,7 @@ Run:
# Testing with curl # Testing with curl
curl http://127.0.0.1:8050/v1/chat/completions -H "Content-Type: application/json" -d '{ curl http://127.0.0.1:8050/v1/chat/completions -H "Content-Type: application/json" -d '{
"model": "gpt-4o-mini", "model": "gpt-5",
"messages": [ "messages": [
{"role": "user", "content": "Hello"} {"role": "user", "content": "Hello"}
] ]
@@ -357,16 +358,15 @@ Edit your **openclaw.json** configuration file (normaly it's in ~/.openclaw/open
"apiKey":"sk-test", "apiKey":"sk-test",
"api":"openai-completions", "api":"openai-completions",
"models":[ "models":[
{ {
"id":"gpt-4o-mini", "id": "gpt-5",
"name":"gpt-4o-mini", "name": "gpt-5" ,
"reasoning":false, "reasoning": false,
"input":[ "input": ["text"],
"text" "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
], "contextWindow": 200000,
"contextWindow":200000, "maxTokens": 8192
"maxTokens":8192 }
}
] ]
} }
} }
@@ -374,7 +374,7 @@ Edit your **openclaw.json** configuration file (normaly it's in ~/.openclaw/open
"agents":{ "agents":{
"defaults":{ "defaults":{
"model":{ "model":{
"primary":"openai-compatible/gpt-4o-mini" "primary": "openai-compatible/gpt-5"
} }
} }
}, },