Skip to content

Commit

Permalink
Fix typos in openai-transcriptions.adoc (#1217)
Browse files Browse the repository at this point in the history
  • Loading branch information
Flyingblu committed Aug 15, 2024
1 parent 2d6117b commit 72369d5
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Exporting an environment variable is one way to set that configuration property:

== Auto-configuration

Spring AI provides Spring Boot auto-configuration for the OpenAI Image Generation Client.
Spring AI provides Spring Boot auto-configuration for the OpenAI Transcription Client.
To enable it add the following dependency to your project's Maven `pom.xml` file:

[source, xml]
Expand Down Expand Up @@ -55,7 +55,7 @@ Usage from these API requests will count as usage for the specified organization

==== Configuraiton Properties

The prefix `spring.ai.openai.audio.transcription` is used as the property prefix that lets you configure the retry mechanism for the OpenAI image model.
The prefix `spring.ai.openai.audio.transcription` is used as the property prefix that lets you configure the retry mechanism for the OpenAI transcription model.

[cols="3,5,2"]
|====
Expand All @@ -77,9 +77,9 @@ NOTE: You can override the common `spring.ai.openai.base-url`, `spring.ai.openai
The `spring.ai.openai.audio.transcription.base-url`, `spring.ai.openai.audio.transcription.api-key`, `spring.ai.openai.audio.transcription.organization-id` and `spring.ai.openai.audio.transcription.project-id` properties if set take precedence over the common properties.
This is useful if you want to use different OpenAI accounts for different models and different model endpoints.

TIP: All properties prefixed with `spring.ai.openai.image.options` can be overridden at runtime.
TIP: All properties prefixed with `spring.ai.openai.transcription.options` can be overridden at runtime.

== Runtime Options [[image-options]]
== Runtime Options [[transcription-options]]

The `OpenAiAudioTranscriptionOptions` class provides the options to use when making a transcription.
On start-up, the options specified by `spring.ai.openai.audio.transcription` are used but you can override these at runtime.
Expand Down Expand Up @@ -143,4 +143,4 @@ AudioTranscriptionResponse response = openAiTranscriptionModel.call(transcriptio
----

== Example Code
* The link:https://github.com/spring-projects/spring-ai/blob/main/models/spring-ai-openai/src/test/java/org/springframework/ai/openai/audio/transcription/OpenAiTranscriptionModelIT.java[OpenAiTranscriptionModelIT.java] test provides some general examples how to use the library.
* The link:https://github.com/spring-projects/spring-ai/blob/main/models/spring-ai-openai/src/test/java/org/springframework/ai/openai/audio/transcription/OpenAiTranscriptionModelIT.java[OpenAiTranscriptionModelIT.java] test provides some general examples how to use the library.

0 comments on commit 72369d5

Please sign in to comment.