Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
7f0ccc8a
Unverified
Commit
7f0ccc8a
authored
Dec 08, 2024
by
湛露先生
Committed by
GitHub
Dec 07, 2024
Browse files
docs: fix syntax error in openai.md (#7986)
parent
de52b6c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/openai.md
docs/openai.md
+1
-1
No files found.
docs/openai.md
View file @
7f0ccc8a
...
@@ -61,7 +61,7 @@ embeddings = client.embeddings.create(
...
@@ -61,7 +61,7 @@ embeddings = client.embeddings.create(
```
```
#### Structured outputs
#### Structured outputs
```
py
```
py
rom
pydantic
import
BaseModel
f
rom
pydantic
import
BaseModel
from
openai
import
OpenAI
from
openai
import
OpenAI
client
=
OpenAI
(
base_url
=
"http://localhost:11434/v1"
,
api_key
=
"ollama"
)
client
=
OpenAI
(
base_url
=
"http://localhost:11434/v1"
,
api_key
=
"ollama"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment