Skip to content

Commit

Permalink
fix ifly stt
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasBack2Future committed Dec 5, 2024
1 parent 6befd2f commit e1591b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ def on_data(self, ten_env: TenEnv, data: Data) -> None:
f"on_data {TEXT_DATA_TEXT_FIELD}: {text} {TEXT_DATA_FINAL_FIELD}: {final} {TEXT_DATA_STREAM_ID_FIELD}: {stream_id} {TEXT_DATA_END_OF_SEGMENT_FIELD}: {end_of_segment}"
)

if stream_id != 0:
end_of_segment = final

# We cache all final text data and append the non-final text data to the cached data
# until the end of the segment.
if end_of_segment:
Expand Down
6 changes: 3 additions & 3 deletions demo/src/components/Dialog/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export const cozeSettingsFormSchema = z.object({
message: "Bot ID is required",
})
.min(1),
base_url: z.nativeEnum(ECozeBaseUrl).default(ECozeBaseUrl.GLOBAL),
base_url: z.nativeEnum(ECozeBaseUrl).default(ECozeBaseUrl.CN),
})

export const isCozeGraph = (graphName: string) => {
Expand Down Expand Up @@ -305,8 +305,8 @@ export function CozeSettingsTab(props: {
<SelectValue placeholder="Select base URL" />
</SelectTrigger>
<SelectContent>
<SelectItem value={ECozeBaseUrl.GLOBAL}>
{ECozeBaseUrl.GLOBAL}
<SelectItem value={ECozeBaseUrl.CN}>
{ECozeBaseUrl.CN}
</SelectItem>
{/* <SelectItem value={ECozeBaseUrl.CN}>
{ECozeBaseUrl.CN}
Expand Down

0 comments on commit e1591b6

Please sign in to comment.